Skip to main content
1-Visitor
Question

Function Dependent on Previous Function

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

terryhendicott
21-Topaz II

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.

Translate
Werner_E
25-Diamond I

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

Translate