Newtons Method -hardway Disp Trouble
Posted 01 April 2011 - 05:00 AM
Here is what I have so far:
'<comment> I want to print my initial guess X and the difference between my previous guess which would be zero on first round but this doesnt work
'difference between new and old guess
'Y is the new X
I get 0 of course when I try to print XB because it is printing the product of XB not the values of X and then B: so I need the syntax for that.
I know the thing uses this method in the background but I need to be able to output the values for each iteration. Is there a better way to assign 0 to the variables other than one at a time. I know about the ~ for getting a range but what about my random selection of letters?
Thanks in advance
Posted 01 April 2011 - 08:17 PM
But that did not work - I did get the dots but no value for x or b?
Posted 02 April 2011 - 06:08 PM
but would still like to concatenate the results...is there a way to do that? commas did not seem to work.
One more thing - is there a way to restrict the answer to 3 or 4 decimal places?
If anyone knows thanks
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users