Student Support Forum: 'Very Simple Question' topicStudent Support Forum > General > "Very Simple Question"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Jeet 11/19/04 5:41pm Hi I have a very simple question. I am new to mathematica so I need a bit of help. i have the following code: g[x_] = x^3 - 3 x + 1 FindRoot[g[x] == 0, {x, -2}] I get the following result: {x -> -1.87939} How do I use the result in another equation without having to retype -1.87939. eg: if i want to calculate: say, x + 1 to get 0.87939 then nothing happens as mathematica does not take the value of x = -1.87939. So how do I use the value of x that i got in the 1st part, to calculate x + 1 without having to type -1.87939 directly or having to declare it as a new variable? hope someone can help cheers URL: ,

 Subject (listing for 'Very Simple Question') Author Date Posted Very Simple Question Jeet 11/19/04 5:41pm Re: Very Simple Question Andrew DuBui... 11/20/04 3:43pm Re: Very Simple Question Ben Kovitz 11/20/04 3:50pm Re: Very Simple Question yehuda ben-s... 11/20/04 5:59pm
 Next Comment > Help | Reply To Topic