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

13-Aquamarine

## Assign Symbolic Result to a Variable

Hello all,

I would like to assign the resulting vector to a variable but I do not know how to do it.

Thank you all!

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald III
(To:rubenvillarreal)

Better stil:

Then fill in the values in the variable list of the function r.p:

or:

Whichever way you like better.

Success!
Luc

10 REPLIES 10

simply write r.p:= in front of your expression

13-Aquamarine
(To:Werner_E)

THANKS!

13-Aquamarine
(To:Werner_E)

Hello,

It fails at some point, notice how the expression is changed, I guess I am missing something very obvious. All variables were already defined.

23-Emerald III
(To:rubenvillarreal)

Working with a range in those symbolics may be the problem.

See if you can separate the three symbolic solutions (I can read your file, but am limited to Prime Express = no symbolics), so:

create an x.1 for r.v=1, an x.2 for r.v=2 and an x.3 for r.v=3.

Success!
Luc

23-Emerald III
(To:rubenvillarreal)

Better stil:

Then fill in the values in the variable list of the function r.p:

or:

Whichever way you like better.

Success!
Luc

13-Aquamarine
(To:LucMeekes)

Thank you very much!

This title fits my situation to a T, so here's a new challenge that really does need to draw the symbolic/algebraic results from a symbolic evaluation out and place them into a next algebraic equation...

Here we are starting with 4 indefinite integrals that each get a constant of integration that must be solved using boundary conditions.  Then these constants need to be put back into the equations such that they can be solved numerically and plotted.

Not sure if there's a better way, but it works if you redefine V(x), M(x), Theta(x), and y(x) after solving for C1-C4:

18-Opal
(To:MJG)

Also, you'll either need to move the redefinitions below your value assignments, or you'll need to make all the other variables be inputs of your functions.  For example, y(x,l,w0,E,I):=...

24-Ruby V
(To:ptc-1944580)

I'd prefer MJG's last suggestion.

Also its a little bit easier to make the constants of integration vector elements. Thats the reason I set ORIGIN:=1 as otherwise we would have to add a dummy element on top of vector C.

File in Prime5 format attached.

Announcements