Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find and for

Status
Not open for further replies.

thom86

New member
Jul 22, 2008
6
Hi
i have a little problem with a program. As you can see on the picture it doesnt recognize "b".
This calculation works without "for".
If anyone has an idea please tell me.
regards,

getfile.aspx
 
Replies continue below

Recommended for you

I don't think you can use a solve block within a program. To do so would require typing in the "Given" as a programming operator. You can't type in programming operator; you have to use the programming toolbar or keyboard equivalents. "Given" is not available on the programming toolbar.
 
You need to create a function that implements the Given-Find, ala, func(x,y,z):=find(a,b,c), then call the function from within the program

TTFN

FAQ731-376
 
Thx for your answer.

Do you have any clue on how i can do that IRstuff ?

Regards,
 
This is kind of an extreme example. It is trying to minimizie the coefficients of a differential equation so it will reach a setpoint quickly.
ftp://ftp.deltacompsys.com/public/NG/Mathcad%20-%20ITAE2.pdf

 
thank you very much for your help guys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor