Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
please help me
why it says this variable is undefined
The possibilities of defining t and P (t) are two:
You have predefined the function P to be a constant:
And where is the "Find" to close the "Given"??
The author provided it this way, what do you want from me?
I know (from your other posts) that you know Mathcad. The purpose (I think) of this forum is to advance the ability of users to use the app by sharing knowledge. In this post you have not--the syntax is wrong and you have not corrected it, or pointed it out.
I'm about 3/4 convinced that this user's posts are not from someone interested and trying to learn Mathcad; he has now posted the same error (Given with no Find) at least three times. Mathcad's "help" was never great, but the proper construction of a solve block has always been clear. The order of evaluation (his error in the first post here) is also clearly stated. So either he's not trying, or he's teasing us/wasting our time.
I wasn't trying to be critical, just pointing out an error.
😉
I fully agree with Mathcad that 'this variable is undefined'. You ask why?
In the first line, defining k.g, you use a variable t that is not defined at that moment. It is defined several lines down.
Note that in this same definition P(t) is also undefined. But Mathcad only reports a single error per equation.
In the second line, defining k.d, you use P(t) again, and it still is not defined (yet). That only happens in the following line.
You should learn a few things very well if you want to use Mathcad:
Use := to define a variable or function. The symbol to be defined is to the left of :=, the definition goes to the right of it.
Use = to evaluate a variable or function (get it's value, have it displayed). The symbol to be evaluated must be to the left of the =, the result will be shown to the right of it (if it can be calculated).
Use = to compare the value of a variable or function with another value (of a constant, variable or function).
And finally: Mathcad reads sheets from left to right and top to bottom. If you want to use a symbol (variable or function) it MUST be defined beforehand; that is; above and/or to the left of where you use it.
Success!
Luc