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

symbolic solver returning undefined for simplest equation ever

rscott
6-Contributor

symbolic solver returning undefined for simplest equation ever

I have the following simple equation

 

And all i get is undefined.... 

 

Any ideas?

rscott_0-1713541132529.png

 

 

6 REPLIES 6
Cornel
19-Tanzanite
(To:rscott)

This is what I can see from my side in prime 9:

Cornel_0-1713541364625.png

 

rscott
6-Contributor
(To:Cornel)

I dont understand why mine says undefined. 

I can make it solve other simple equations like y = mx+b

 

I also changed all the variables in mine to just a , b, c, d for fun and it still says undefined 

 

It appears i have V and D used in other parts of my sheet but i thought because i was redefining them as an equation that was allowed?

 

Is there a way to create a function that is isolated from other areas in your page?

That would be a really good feature of mathcad to have

 

Werner_E
25-Diamond I
(To:rscott)


It appears i have V and D used in other parts of my sheet but i thought because i was redefining them as an equation that was allowed?

 

Its allowed but the variables or functions still keep their assigned values as defined.

So this seems to be the root of the evil, I guess. One more reason why we would have to see the worksheet!

You may use clear.sym(V,D,I,F) to  make these variables undefined for symbolic operations or you may use clear(V,D,I,F) to clear them completely.

 

Another, more elaborate way would be to turn the solution into a function of the involved variables

Werner_E_0-1713565995541.png

 

Werner_E
25-Diamond I
(To:rscott)


Any ideas?

Sure! The first idea (or better question) which comes to mind is "Why didn't he attach the worksheet so we can see if and how he defined the variables used or how they are labeled?"

DJF
16-Pearl
16-Pearl
(To:rscott)

On more than one occasion I've had to either retype the equation, or even copy/retype into another sheet - and then it magically works.

Werner_E
25-Diamond I
(To:DJF)


@DJF wrote:

On more than one occasion I've had to either retype the equation, or even copy/retype into another sheet - and then it magically works.


From what @rscott  had written so far the most likely cause for the error are definitions of variables and/or function he had done in front of the failing expression he showed in the picture.

If thats true, then retyping would not help, but copying the region to a new sheet sure should. But it would be easier to use the clear.sym(...) or the clear(..) command as explained above https://community.ptc.com/t5/Mathcad/symbolic-solver-returning-undefined-for-simplest-equation-ever/m-p/944821/highlight/true#M211382

 

What you had in mind probably are Primes infamous auto-label failures. When you type an expression from scratch, Prime may get the labels correct, but if you start editing an expression, Prime sometimes gets confused, assigns the wrongs labels and this may cause a symbolic evaluation/solve fail. If thats the case, retyping sure can help.

 

Announcements

Top Tags