Skip to main content
1-Visitor
June 28, 2021
Question

Help with plotting function

  • June 28, 2021
  • 2 replies
  • 1454 views

New to Mathcad. I am stuck at this for last 3 hours. I have a V as function of x, i defined x as an array now I want to plot V(x) on y axis vs x on x axis. It shows me errors like function is not defined and value must be function. Please see and help

 

 

2 replies

ttokoro
21-Topaz I
21-Topaz I
June 28, 2021

May be you need * .

image.pngimage.pngimage.png

t.t.
25-Diamond I
June 28, 2021

In case you overlooked the difference in ttokoros answer - you missed to type a multiplication sign between "w" and the opening parenthesis. Omitting this multiplication and simply typing "w(..." means that you a referring to a function w, which of course is not defined. Hence the error message.

 

Prime offers a rudimentary error trace facility.

If you type V(3ft)= you get the error saying that it must be a function:

Werner_E_0-1624924325283.png

 

If you now switch to the calculation ribbon and use the error trace facility, you are pointed to the place where the error really occurs:

Werner_E_2-1624924409048.png

Unfortunately this does not work from the error you got when you tried plotting V.