Skip to main content
1-Visitor
September 4, 2024
Question

How to input an equation into a vector in MathCad?

  • September 4, 2024
  • 3 replies
  • 1164 views

Hey,
I want to solve the system in the first file symbolically, so that it leaves p in the answer as a parameter (the phi1(p), phi2(p), etc are unimportant and can be renamed x,y, z). I'm not quite sure how to do that; I googled around a bit and the closest solution I found was in the "Symbolic solving" section of this link: https://www.mathcad.com/en/blogs/solving-systems-equations-mathcad

I included the picture from that section which explains well what I need to do - basically, create a vector of equations.

I tried to implement this, but I can't figure out how to actually type an equation into a vector. Whenever I try to type an = or := sign, it takes me out of the vector. I tried copy-pasting, too, to no avail. Any ideas on how to do this? Thanks)

3 replies

23-Emerald IV
September 4, 2024

= is an evaluation operator

:= is a definition operator

You probably need the 'equals'. operator. That is a bold =. You get it by typing [Ctl =].

 

Success!

Luc

23-Emerald IV
September 4, 2024

Here is one way to solve it.

LucMeekes_1-1725470491901.png

Note that I've used only integers, to prevent symbolic results with floating point results with superfluous digits. It also has the advantage of getting an exact result (since floating point numbers often aren't exact...).

You can assign the result to a function and extract the separate functions from it:

LucMeekes_2-1725470748941.png

Success!
Luc

Community Moderator
September 17, 2024

Hi @IJ_11844237,

 

I wanted to see if you got the help you needed.


If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag