Hitch_Hawk

5 Reputation

One Badge

0 years, 350 days
Lives on the planet named earth. Does things with other humans like consuming water, breathing in oxygen and (attempting to) breath out carbon dioxide.

MaplePrimes Activity


These are replies submitted by Hitch_Hawk

@acer I I'll be sure to check there first next time! Thank you!

@Carl Love You're a saint, and the explanations have helped me so much. Thank you again, and no problem. You deserve the best answer! 

@Carl Love Thank you for the awesome explanation! It makes a lot more sense now, and I understand why my code wasnt working before, as well as other past things. This will definetly take some getting used too.
Procedures are the whole equations, while functions are just parts of it.
sin(x) is a function and then together f:=x->sin(x) is a procedure.

I'll upvote you once I get the minimum 10 reps to vote. Again, thank you so much!

newtons := proc( f, x, n::integer)
    Blagh blagh blagh
end:

Then when calling it.
g:=x->sin(x);
newtons(g, 2.5, 10);

My problem was that I was calling it like
newtons(g(x), 2.5, 10); Which caused weird stuff to happen.
Call your procs without adding (x), and dont add ::function to the proc

Page 1 of 1