Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Solve and/or NSolve a user defined function' topicStudent Support Forum > General > Archives > "Solve and/or NSolve a user defined function"

Next Comment >Help | Reply To Topic
Author Comment/Response
D. John
01/27/11 10:15pm

Hello,

I've looked through the help files, and I was wondering if there was any way to Solve a defined function as there is in Maple.

I'm doing problems with Mueller's method and I'm attempting to use Mathematica like so:

f[x_]:=x^4 + 5x^3 - 9x^2 - 85x - 136
P[x_]:=a*(x-p2)^2 + b*(x-p2) + c

NSolve[{P[p0]==f[p0], P[p1]==f[p1], P[p2]=f[p2]},{a,b,c}]

The only output I get from the above is {{}}. However I can do the above in Maple. Is there any way to do it in Mathematica, or am I stuck having to first evaluate my P[x] function by hand and then using NSolve?

Thanks!

URL: ,

Subject (listing for 'Solve and/or NSolve a user defined function')
Author Date Posted
Solve and/or NSolve a user defined function D. John 01/27/11 10:15pm
Re: Solve and/or NSolve a user defined function yehuda ben-s... 01/29/11 05:26am
Re: Re: Solve and/or NSolve a user defined func... D. John 01/29/11 9:54pm
Next Comment >Help | Reply To Topic