473,513 Members | 2,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

False position method problem

11 New Member
I just want to ask if there is no sign change how can i solve it?
my problem is: sinx + cos(1 + x^2) -1
Xi=3 Xi-1= 1
I tried solving it first manually before making a program of it..
Aug 9 '07 #1
5 3016
sanctus
84 New Member
I just want to ask if there is no sign change how can i solve it?
my problem is: sinx + cos(1 + x^2) -1
Xi=3 Xi-1= 1
I tried solving it first manually before making a program of it..
what are the equations you want to solve (i.e. sin(x)+cos(1+x^2)-1
=????) ? What is the relation between x and Xi?
Aug 9 '07 #2
Meetee
931 Recognized Expert Moderator Contributor
I just want to ask if there is no sign change how can i solve it?
my problem is: sinx + cos(1 + x^2) -1
Xi=3 Xi-1= 1
I tried solving it first manually before making a program of it..
Hi,

You want to put the values of x in sinx + cos(1 + x^2) -1 equation to get answer?

Kindly elaborate your problem as the information given in your post is not enough to solve your problem.

Regards
Aug 9 '07 #3
JosAH
11,448 Recognized Expert MVP
Hi,

You want to put the values of x in sinx + cos(1 + x^2) -1 equation to get answer?

Kindly elaborate your problem as the information given in your post is not enough to solve your problem.

Regards
I recognize that equation; most likely the OP wants to find an approximation
of a root of that equation. Using the secant method you need two initial approximations
one for which f(x1) < 0 and one for which f(x2) > 0. I think the question is: what
to do when the sign of both those function values are equal? I'd say: you can't
use that method then.

kind regards,

Jos
Aug 9 '07 #4
jendrin
11 New Member
thx josh. so can i just say "root can't be solved"? the max iterations for secant method is 4times to get the 1st postive root. can i just change the number of iterations ?
Aug 10 '07 #5
JosAH
11,448 Recognized Expert MVP
thx josh. so can i just say "root can't be solved"? the max iterations for secant method is 4times to get the 1st postive root. can i just change the number of iterations ?
Since the signs of the function values of both Xi and Xi-1 are equal you can't
use those two values as initial approximations for the root value; at least you
can't use the secant method here. That's all there is to it. You either have to
find two other Xi, Xi-1 values or you have to use another approximation method.

kind regards,

Jos
Aug 10 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3289
by: Teeravee Sirinapasawasdee | last post by:
Here is code from MSDN-Library April 2003 which I tried to implement to my class but there was some error that I don't know how to solve it. In Privete Overloads Sub Dispose(ByVal disposing...
1
3185
by: Lam | last post by:
hi i have a problem with position of image i use this code in a "alert" function : document.getElementById("lienx").offsetLeft + " , " + document.getElementById("lienx").offsetTop with : ...
2
1849
by: datactrl | last post by:
Hi, all I've got an error such as "catastrophic failure" with the following staements: myRs=idXml.recordset; myRs.Find("invdate >#01/01/01#"); The error line is pointed to Find statement.
0
1176
by: Chris Simeone | last post by:
Hello, I'm having problems with the ParseControl() method creating unexpected output which I think is preventing events from firing. My code is based on this MSDN article:...
3
6491
by: mismis | last post by:
hi..tnx guys 4 helping me out wrte my program regarding the bisection mthod.. but, ds time can i hav anothr favor?..plss...how to write a progrm using the false position method?..the program asks...
2
2092
by: deneb.dizajn | last post by:
I'm writing this sorting just to understand how exactly works methods in CObList. Iteration works fine, but it won't change pointers. CObList myList; CPerson* first, second; POSITION next,...
4
9880
by: Blackbrand | last post by:
I'll start off with what i'm trying to do: i want to search my data programmatically and then jump to the row in the datagrid. My data will almost allways go out of the datagrids bounds so if the...
0
2078
by: jendrin | last post by:
This is the program i made for calculating a root for false position method using initial guesses. But i can't seem to may it work and i cant find the error on it... #include<iostream>...
11
3139
by: eBob.com | last post by:
I have this nasty problem with Shared methods and what I think of as "global storage" - i.e. storage declared outside of any subroutines or functions. In the simple example below this "global"...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7391
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.