Skip to main content
1-Visitor
October 17, 2014
Question

I have a problem

  • October 17, 2014
  • 1 reply
  • 3820 views

%EC%BA%A1%EC%B2%98.PNG

I am getting error such as picture.

I tried to solve my problem. But I don't know. Could you help me?

1 reply

12-Amethyst
October 17, 2014

I can see at least 2 problems that will stop your sheet working.

if p=0 then V(p,e) will be 0 and p2 tries to divide by 0.

Start with p=0.1 & this is OK.

in the program you compare p a single value with the result p2 (a vector),

Should the while loop stop when any ony of the conditions is met, or all of them?

Andy

25-Diamond I
October 17, 2014

Next problems are that neither e nor the results of v() and p2() are vectors at all - they just look similar.

Furthermore the argument mu of the function pe() is not used at all, so its not clear to me what the function tries to achieve. It seems that it should solve the equation p=p2(p,e) for p. Not sure why its done using that for-loop.

jlee-21-VisitorAuthor
1-Visitor
October 17, 2014

Next problems are that neither e nor the results of v() and p2() are vectors at all - they just look similar.

I don't understand this sentence well.

so If you are possible, Could you explain again by using example?