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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Solve block as a function

MikeArmstrong
5-Regular Member

Solve block as a function

In the attached sheet I have used the symbolic solve operator to find the required variable. (m.gn)

I have heard people talking on this forum about defining a function that references your solve block, then use that function within your program.

Can anybody either confirm if this is possible or an alternative to the solve command.


Regards

Mike
10 REPLIES 10

On 8/25/2009 5:25:18 AM, Armo wrote:
== In the attached sheet I have used the symbolic solve operator to find the required variable. (m.gn)
== I have heard people talking on this forum about defining a function that references your solve block, then use that function within your program.
== Can anybody either confirm if this is possible or an alternative to the solve command.

See attached. (M11 format)

Stuart
MikeArmstrong
5-Regular Member
(To:StuartBruff)

Cheers Stuart, that works great can that be put into a program?

Regards

Mike

On 8/25/2009 5:51:51 AM, Armo wrote:
== Cheers Stuart, that works great can that be put into a program?

Umm, depends exactly what you want to do. If you want to use symbolics then the entire program gets solved symbolically ...

You can certainly call f(...) from within a program.

Stuart
MikeArmstrong
5-Regular Member
(To:StuartBruff)

I have attached a sheet of exactly what I am trying to do.

You can see that I have written the calculation in a program and used the answer from the solve function for m.gn, but, if possible I would like to incorporate the solve function into the program.

Regards

Mike

Is this what you want to do?

Richard
MikeArmstrong
5-Regular Member
(To:RichardJ)

Yes cheers Richard.

Spot on.

Regards

Mike

On 8/25/2009 9:44:25 AM, Armo wrote:
>Yes cheers Richard.
>
>Spot on.
>
>Regards
>
>Mike
________________________

You three, are bombarding from too close range,
I have to go for the day, get inspired by the green.
No problem to include ranged 'r' !!! but a more involved way


jmG



Get inspired for your ranged 'T', 'r', 'Alpha'.

jmG
MikeArmstrong
5-Regular Member
(To:ptc-1368288)

jmG

Am i missing something.......

Can't see the correlation to mine.

Regards

Mike

On 8/25/2009 6:41:30 AM, Armo wrote:
>I have attached a sheet of
>exactly what I am trying to
>do.
>
>You can see that I have
>written the calculation in a
>program and used the answer
>from the solve function for
>m.gn, but, if possible I would
>like to incorporate the solve
>function into the program.
>
>Regards
>
>Mike
______________________________

This is not a case of passing a solve block in a programme. Below Marlett is a case of passing a solver in a programme. Colebrook that I passed is a case of passing a solver in a programme and iterating for a family of solutions. You better go yellow "the Engineer way". You can't resist plugging units ... is it ? !!! Always check any function by plotting.

jmG



Announcements

Top Tags