Skip to main content
1-Visitor
Question

Variable in Mathcad and Symbollic Differentiation

Hi, 

 

I would like to get the expression of a function after differentiation with respect to a variable.

Somehow Mathcad does not recognize the variable and tells that the variable is undefined.

image.png

it leads to make it impossible to find the derivative.

 

image.png

 

 

 

numerically, the calculation is correct.

It is just this symbolic feature that are having problem.

 

I appreciate any suggestion.

 

8 replies

23-Emerald I

The red circle is one problem, but it shouldn't stop you from getting symbolic derivative:

Capture.PNG

Translate
bmulyanto1-VisitorAuthor
1-Visitor

Thanks!
It works.
I though I should not include n.

image.png

Translate
Werner_E
25-Diamond I

Either

B1.png

or

B2.png

The first is the cleaner version.

In the latter case you will get an error by the numerics because n is not defined, but the symbolic evaluations should work nonetheless.

 

Translate
Werner_E
25-Diamond I

The problem is the inline evaluation (the last equal sign) when you define your functions.

Delete it!

Translate