Assign Symbolic Result to a Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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!
Solved! Go to Solution.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
simply write r.p:= in front of your expression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
THANKS!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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):=...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
