Skip to main content
1-Visitor
March 27, 2013
Solved

Problem plotting function with range variable

  • March 27, 2013
  • 1 reply
  • 11938 views

I've been using R14 for a while and recently tried switching to Prime to see if it would be a useful upgrade, but I've failed miserably at reproducing some very simple work from R14 (I didn't want to uninstall R14 to put R15 on to do the conversion so I thought I'd try something from scratch).

I would like to plot the result of a simple function across a range, I've declared the function and verified it works but I can't plot it using a range variable for one of the arguments?

It gives me the error "There are too many range variables"...what am I doing wrong?

Best answer by Werner_E

Chris Rae wrote:

I've been using R14 for a while and recently tried switching to Prime to see if it would be a useful upgrade,

Not yet, in my opinion.

The error is a funny one and unfortunately not so seldom with Prime.

The error message is nonsense and absolutely not helpful, though.

I recreated the graph in your sheet and it worked immediatly. Finding the error took a bit longer.

Its the theta as argument in the function T.out in the plot. It is formatted (style) as "variable" (as it is above in the declaration above) and if you change it to "none" it works. The other parameters can stay styled as "variable".

It seems to me to be a bug. If I delete the whole function call and retype it, all parameters get style "none" for reasons only PTC will know of, if any.

P.S.: If you want a sheet created in real Mathcad be converted to Prime format, post it here and I am sure, someone will be willing to do the conversion for you.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
March 27, 2013

Chris Rae wrote:

I've been using R14 for a while and recently tried switching to Prime to see if it would be a useful upgrade,

Not yet, in my opinion.

The error is a funny one and unfortunately not so seldom with Prime.

The error message is nonsense and absolutely not helpful, though.

I recreated the graph in your sheet and it worked immediatly. Finding the error took a bit longer.

Its the theta as argument in the function T.out in the plot. It is formatted (style) as "variable" (as it is above in the declaration above) and if you change it to "none" it works. The other parameters can stay styled as "variable".

It seems to me to be a bug. If I delete the whole function call and retype it, all parameters get style "none" for reasons only PTC will know of, if any.

P.S.: If you want a sheet created in real Mathcad be converted to Prime format, post it here and I am sure, someone will be willing to do the conversion for you.

25-Diamond I
March 27, 2013

Addendum:

A better and more logical way to correct it, is to assign the variable theta on the abscissa the style "variable"!

ChrisRae1-VisitorAuthor
1-Visitor
March 27, 2013

Excellent, thanks for the responses, I can see the issue now, although I'm not sure how it occurred (or why the error message was so uselessly cryptic!). As you suggested I'm not sure this new version is ready for me to make the switch.