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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to solve an equation with constant represented by letter

YZ_9729930
5-Regular Member

How to solve an equation with constant represented by letter

i dont't know how to solve an equation with constant like 'A' or 'B'

 

for example:

x+B=A

solve, x

 

it is available in MATHCAD 15, but not in Prime

how can i realize this function?

1 ACCEPTED SOLUTION

Accepted Solutions


How can you input the "(x  y)" ?


Its a matrix (1 row, 2 columns)

 

Keystrokes:

 

Ctrl-M (or simply type [)

x

Shift-Space

y

:

....

 

In Prime you get square brackets to indicate a matrix and you also may simply type square brackets to create a matrix.

 

Werner_E_0-1613731444251.png

 

View solution in original post

12 REPLIES 12

Prime can solve this, especially since it's pretty trivial.

Type the following

A:=5

B:=7

A=x+B  (the equals sign here is CTRL-=)

Then, go to the Symbolics menu and click on the right arrow operator (→), which will place it after A=x+B (ignore the answer for now)

Go back to the Symbolics menu and click on the operator solve, which will place it above the right arrow operator, then type ,x

Hit the Enter key to get the answer of -2.


@YZ_9729930 wrote:

i dont't know how to solve an equation with constant like 'A' or 'B'

 

for example:

x+B=A

solve, x

 

it is available in MATHCAD 15, but not in Prime

how can i realize this function?


Its the same in Prime as in MC15

Just use the symbolics if you are looking for a symbolic solution

Werner_E_0-1613698925038.png

Or use the root-function or a solve block for a numeric solution (you'll have to provide values for A and B in that case)

Werner_E_1-1613699193670.png

 

 

YZ_9729930
5-Regular Member
(To:Werner_E)

Thanks, it works!

But how about the equation set like this?

YZ_9729930_0-1613705855873.png

 

LucMeekes
23-Emerald III
(To:YZ_9729930)

The solve block in Prime only works with numeric items, that is, it doesn't work with symbols alone.

If you provide numerical values for A and B, the solve block will give the numeric answers for x and y.

If you want to solve it purely symbolic (with no numeric values for A and B), use the symbolic solver:

LucMeekes_0-1613720013077.png

You can even assign the results to the variables you solve for:

LucMeekes_0-1613720156821.png

Note that the expression involving solve turns red. That is because the numeric processor complains that A and B are (numerically) unknown. But the symbolic processor doesn't mind, and symbolically evaluates x and y without problems.

 

Success!
Luc

YZ_9729930
5-Regular Member
(To:LucMeekes)

Thanks, i solved the issue.

One more question:

How can you input the "(x  y)" ?

YZ_9729930_0-1613726092808.png

 


How can you input the "(x  y)" ?


Its a matrix (1 row, 2 columns)

 

Keystrokes:

 

Ctrl-M (or simply type [)

x

Shift-Space

y

:

....

 

In Prime you get square brackets to indicate a matrix and you also may simply type square brackets to create a matrix.

 

Werner_E_0-1613731444251.png

 

ttokoro
20-Turquoise
(To:YZ_9729930)

image.png


@ttokoro wrote:

image.png


A debt of gratitude is in order for sharing the arrangement.

ttokoro
20-Turquoise
(To:RR_9823807)

image.pngimage.pngimage.pngimage.pngimage.png

YZ_9729930
5-Regular Member
(To:ttokoro)

but why i can't get the same result as you? I checked that everything is the same.

 

YZ_9729930_2-1613784646771.png

 

ttokoro
20-Turquoise
(To:YZ_9729930)

Just change the on/off of the prime table menu.

image.png

YZ_9729930
5-Regular Member
(To:ttokoro)

it works.

Thanks a lot!

Top Tags