Skip to main content
14-Alexandrite
April 20, 2016
Solved

Assign Symbolic Result to a Variable

  • April 20, 2016
  • 2 replies
  • 11540 views

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!

Best answer by LucMeekes

Better stil:

First solve your equation symbolically:

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

or:

Whichever way you like better.

Success!
Luc

2 replies

25-Diamond I
April 21, 2016

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

14-Alexandrite
April 21, 2016

THANKS!

1-Visitor
August 30, 2018

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.

1-Visitor
August 30, 2018

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:

Capture.PNG

1-Visitor
August 30, 2018

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):=...