Skip to main content
1-Visitor
February 3, 2023
Solved

Function does not recognize domain variable

  • February 3, 2023
  • 1 reply
  • 1660 views

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

 

 

 

Best answer by Werner_E

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.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
February 3, 2023

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.

1-Visitor
February 4, 2023

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.