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

undefined

JPark61
8-Gravel

undefined

please help me

 

why it says this variable is undefined

5 REPLIES 5
-MFra-
21-Topaz II
(To:JPark61)

The possibilities of defining t and P (t) are two:

JP61-5.jpg

Fred_Kohlhepp
23-Emerald I
(To:-MFra-)

You have predefined the function P to be a constant:

Capture.JPG

And where is the "Find" to close the "Given"??

The author provided it this way, what do you want from me?

Fred_Kohlhepp
23-Emerald I
(To:-MFra-)

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.

 

😉

LucMeekes
23-Emerald III
(To:JPark61)

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

 

Announcements

Top Tags