Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Unfortunately, I only have Express, so I can't help with the presentation of the symbolic result.
Perhaps, try putting the variables in a vector?
[x_1]
solve, |y_1|
[z_1]
You can assign the result to a variable and transpose it.
However, is there any particular reason you want to use the symbolic processor to solve the equation, when a numeric solution seems to give reasonable results?
Stuart
Stuart's got it: simply assign result to a vector and then take transpose. P11 file attached.
The symbolic solve will always provide the solutions row-wise and there is no option to set which will change this behaviour. You will get further rows for non-linear systems and each row represents a solution set.
I also think that in case you are just looking for the numeric values its better to use a numeric method and not the symbolics. Stuart has already shown some ways. Other options are the usage of the "lsolve" function
or using a solve block with "find" (you have to provide arbitrary guess values) which displays its results column-wise as you like it.
Using the symbolics makes sense if you are looking for symbolic solutions (in case your system contains some variables)
and, yes, in this case displaying the results column-wise sure makes sense 😉
Another reason for using the symbolics could be that you want 'exact' results, displayed in fractions (and maybe pi, e, etc) and not a decimal approximation. Unfortunately the symbolics automatically switches into float-mode as soon as just one decimal point is present. So you must also provide your information with fractions, i.e. 3/2, even though 1.5 is also an exact value.
You may also assign the result of the symbolic "solve" a row vector (1 x 3 matrix) with three variables which you then can evaluate symbolically or numerically and use for further calculations.
Will the symbolic processor accept a vector [x,y,z] as a parameter to the solve keyword?
(where [x,y,z] is a column vector)
Stuart
(Unfortunately, lsolve is a Premium function not available to us lowly Express users, and I'm getting loath to suggest things I can't check)
@StuartBruff wrote:
Will the symbolic processor accept a vector [x,y,z] as a parameter to the solve keyword?
(where [x,y,z] is a column vector)
Yes, the symbolics accepts the list of variables as I did, but also a vector. It does not matter if its a column or a row vector.
It also accepts a mixture
That's annoying. Does that classify as a bug?
Stuart
Doesn't feel like a bug to me. But if its a bug then its a bug present already in Mathcad. At least the behaviour is the same in Mathcad 15.
If Prime would provide a data type 'list', we could demand that we expect to see the results presented in exact the way as we provide the variables to be solved.
So we would see them as column vector when provide [x,y,z] as a column vector as argument of 'solve'.
But as long as there is no data type (comma separated) list implemented I guess I am happy with the behaviour we have.
lsolve is easily implemented in Express (for many, if not most, but certainly not all circumstances) with:
yielding:
Success!
Luc
