Skip to main content
1-Visitor
Feb 3, 2023 10:17 PM UTC
Solved

Function does not recognize domain variable

I am trying to plot a function in respect to a defined domain.  However, the function states that domain variable is undefined.  I do get discrete values when I remove the label for the function I do get a set of discrete values.  I feel like my issue is syntax, what am I doing wrong?

MathCad Help.JPG

MathCad Help_2.JPG

 

 

 

Werner_E
Werner_EAnswer
25-Diamond I
Feb 3, 2023 11:24 PM UTC

Whenever possible attach the worksheets, not just pictures. Its hard to debug a picture.

Even though that in your case the reason for the error seems to be clear even from the picture. Simply delete the equal sign after the definition of the function v(t).

You can't evaluate a function definition, you just can use it.

If you then type f(t)= in a separate region you will see what you expect.

 

BTW, its not necessary to define the range t before the function definition as it has no effect there anyway. It suffices if you define it in front of the plot you a trying to create.

2 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Feb 3, 2023 11:24 PM UTC

Whenever possible attach the worksheets, not just pictures. Its hard to debug a picture.

Even though that in your case the reason for the error seems to be clear even from the picture. Simply delete the equal sign after the definition of the function v(t).

You can't evaluate a function definition, you just can use it.

If you then type f(t)= in a separate region you will see what you expect.

 

BTW, its not necessary to define the range t before the function definition as it has no effect there anyway. It suffices if you define it in front of the plot you a trying to create.

Translate
1-Visitor
Feb 4, 2023 12:18 AM UTC

Understood on posting the worksheet.  I will ensure to do that next time.

 

Your explanation worked, thank you for your quick response.  Also understood on the time definition.  My plot was not captured on the screen shot, but I appreciate the information regarding it being unnecessary.

Translate