Skip to main content
1-Visitor
April 2, 2018
Question

Function Dependent on Previous Function

  • April 2, 2018
  • 2 replies
  • 1205 views

Hi all,

 

I am trying to generate a plot of a function P(y), where the variable y is itself a previously defined function, y(L).

I have defined L:=200,201..400 and the two functions, y(L) and P(y) but when I attempt to plot P(y), I get an error about the value not being a scalar or a vector.

 

Is there a trick to working with functions dependent upon other functions?

 

Thanks

 

2 replies

21-Topaz II
April 3, 2018

Hi

Please attach your worksheet to clarify your problem.

You may have to zip it first. A serious bug in this forum often prevents from attaching a mathcad file. In Windows Explorer click with the right-mouse button on the mathcad file and select 'Send to' -> 'Compressed (zipped) folder'. The resulting .zip file can be attached.

 

You have defined L as a range variable not a scalar or matrix.  Send the file and we can tell what is going on.

25-Diamond I
April 3, 2018

Probably you should use P(y(L)), not just P(y)