cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Unable to plot a function in Prime 3.0

wspier
4-Participant

Unable to plot a function in Prime 3.0

I'm getting an undefined variable error when trying to plot a pair of functions to draw a circle.

I can however get the individual expressions to plot if I don't use them as part of a function

so Mathcad is able to access all the values.

I'm guessing it has something to do with the way I've used them in the functions.

I have rearranged them a couple of different ways and it will change which variable

it sees as undefined but that is all.

I know there are other ways to draw a circle in Mathcad but this one has it charms for

what will be included in the worksheet later.

Thanks.

ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:wspier)

A couple of problems:

1) You can't use an inline evaluation with a function definition. An inline evaluation displays the value (or values, if an array) assigned to the variable on the LHS of the assignment operator, but values are not assigned to a function definition.

2) You must call the function with the same number of arguments you used when you defined it.

View solution in original post

2 REPLIES 2
RichardJ
19-Tanzanite
(To:wspier)

A couple of problems:

1) You can't use an inline evaluation with a function definition. An inline evaluation displays the value (or values, if an array) assigned to the variable on the LHS of the assignment operator, but values are not assigned to a function definition.

2) You must call the function with the same number of arguments you used when you defined it.

wspier
4-Participant
(To:RichardJ)

It was likely the evaluation operator that tripped my up initially.

Thanks a mint Richard.

Announcements

Top Tags