I checked the "Questions that may already have your answer" and didn't really find what I need.
It's actually pretty basic. I want to solve an equation manually with Regula Falsi. I dont need a function that does it by itself.
Here is my input:
f[y_] := sin[y] - y/2
x[0] = Pi
x[1] = Pi/2
x[n_] := (x[n - 2]*f[x[n - 1]] - x[n - 1]*f[x[n - 2]])/(f[x[n - 1]] -
f[x[n - 2]])
NSolve[x[2]]
So you can see it is pretty basic.
I should be able to calculate for every n, right? I should make the recursive calls and give me a solution. But NSolve just gives me..
{{sin[π/2] -> -1.77622, sin[π] -> -3.55244}}
or
NSolve::infsolns: "Infinite solution set has dimension at least 1. Returning intersection of solutions with (151145\sin[[Pi]/2])/110742- (17791\sin[[Pi]])/18457 == 1."
I can't really figure this error message out.
So this was my first question ever here. I got a very fast solution, thanks again. I cant upvote yet, because i am new here. But i managed it that my first question, gets downvoted. thanks a lot. its always very easy to be a beginner in something. Well i want to be a positive part of the community. So if someone could explain to me what i did wrong i probably could do it better next time.
my thank you in advance got edited away. Now my question sounds rude.
Again, Thanks for the fast answer, and i hope i get to know what i did wrong.