cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

embarrasing "not defined" in solve blocks

Efried
Newbie

embarrasing "not defined" in solve blocks

I'm rather frequently get stuck with Mathcad 14 claiming that a variable is not defined- but its not a variable but a function at the left side of a find statement,

The solve block indeed works pretty well with a vector on the left side of the find statement.

I have the impression that copying into a new sheet sometimes helps. I think this is an error by design.

any help is highly apreciated

thanks

Tags (2)
13 REPLIES 13

Re: embarrasing "not defined" in solve blocks

Tracing and troubleshooting errors in Mathcad has long been an art form; like Microsoft's, the error messages only rarely point to the actual problem. (Believe it or not, things have actually improved since early days!)

Soldier on!

Re: embarrasing "not defined" in solve blocks

(Believe it or not, things have actually improved since early days!)

Still not up to scratch though Fred!!!!!

Mike

Re: embarrasing "not defined" in solve blocks

The solve block indeed works pretty well with a vector on the left side of the find statement.

I have the impression that copying into a new sheet sometimes helps. I think this is an error by

I find copying the equation side of the solve block and checking the units helps. Also, by copy/pasting somewhere outside the solve block you should find the undefined variables.

Mike

Re: embarrasing "not defined" in solve blocks

once I thought Umlaute is the problem, then all Variables and Functions have to be included in the solvefunction, but neither helps- attached the proof that it works with the vector asignement...

Re: embarrasing "not defined" in solve blocks

Unfortunately there is not much I can do with a *.pdf. Can you not post the worksheet?

Mike

Re: embarrasing "not defined" in solve blocks

It's difficult to tell from your pdf but sollve blocks require one given (Vorgabe) and one Find (Suchen), a second find without a second given doesn't work.

Attached is a mathcad file and two pdf's pf that file, one with a solve block function and one as a single block.

Re: embarrasing "not defined" in solve blocks

Gerfried Cebrat wrote:

...I have the impression that copying into a new sheet sometimes helps. I think this is an error by design...

Could you give an example (Mathcad worksheet)?

Re: embarrasing "not defined" in solve blocks

I was now trying the same thing with ODE solve and think it works. The problem in my previous attempt was an integral which had been evaluated numerically for the standard solve block and failed when using a function to solve for different parameters, at least that is my impression. Mathcad evaluates the parameters diferently.

Re: embarrasing "not defined" in solve blocks

I'm sorry Gerfried, the help your going to receive will be limited if you do not provide a Mathcad worksheet.

Mike

Re: embarrasing "not defined" in solve blocks

A Given/Odesolve (Vorgabe/Gdglosen) block will return a function, your T_R is a function of y for the values of I,alpha, and t that you had in the DGL_T() finction that defined T_R(y). You can now have the solutions of different cases by adding different values:

T_R2 := DGL_T(I2,a2,t2) where T_R2 is actually a function T_R2(y)

T_R3 := DGL_T(I3,a3,t3)

etc.

Re: embarrasing "not defined" in solve blocks

The solution provided by Andy in another forum was to remove the units in the variables in the find expression of the solve block - for example t.l/K.

thanks to all for your endeavour

Re: embarrasing "not defined" in solve blocks

I'm sorry, I have to say that the removal of the units in the find statemnet results in wrong solving!

So back to the start! The behavior of Mathcad s so strange that I insist that it is buggy.

Re: embarrasing "not defined" in solve blocks

This is an old thread, but a common error I've seen is if you have open solve blocks it will confuse things.

For example:

Define your variables

"Given"

"Given"

Equation

Find(x) -> 'variable not define'

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."