# CG50 - store result of equation solver in variable

cg50

4 replies to this topic

### #1 blueturtle

blueturtle

Newbie

• Members
• 3 posts

• Calculators:
CG-50

Posted 28 November 2020 - 12:24 PM

Hi,

I’ve recently received my new CG50 calculator. Previously I had the fx-991EX, and it had the ability to solve a polynomial (up to a quartic I think) and then store the results in variables for further calculations in the run mode. I have found the “Equation” mode on the CG50 and have worked out how to calculate the roots of a polynomial like on the 991EX, however I can’t find a way to store those values into a variable. I tried pressing the arrow button and then a letter but it didn’t work. Any ideas? Thanks.

### #2 pan.gejt

pan.gejt

Casio Freak

• Members
• 220 posts
• Gender:Male
• Location:CZ

• Calculators:
.

Posted 28 November 2020 - 06:37 PM

It's quite simple.

Switch your calc to RUN-MATRIX and

1. press VARS (variables)

2. press F6 to see the 2nd screen (arrow symbol)

3. press F3 (EQUATION)

4. press F3 (PlyCoef) - you will se the output results as a matrix

---------------

To extract the roots from matrix:

Mat Ans->Mat A

Mat A [1,1]->X

Mat A [2,1]->Y

and so on

You can acces the Mat command by pressing optn - F2 (MAT/VCT) - F1

The VARS key is very powerful tool for extracting or viewing entered values and results

Edited by pan.gejt, 28 November 2020 - 06:38 PM.

### #3 blueturtle

blueturtle

Newbie

• Members
• 3 posts

• Calculators:
CG-50

Posted 28 November 2020 - 06:45 PM

I knew there had to be an easy solution! Thank you

Is there a more elegant way of unpacking a matrix or list into separate variables? Eg. Split a 4x1 matrix into variables A-D

Edited by blueturtle, 28 November 2020 - 08:36 PM.

### #4 pan.gejt

pan.gejt

Casio Freak

• Members
• 220 posts
• Gender:Male
• Location:CZ

• Calculators:
.

Posted 30 November 2020 - 06:14 PM

Well, after further investigating you don't need to unpack the matrix results to separate results because the elements of matrix are used as memory itself.

The assigning elements of matrix to variables mentioned above by myself are not necessary.

the 1st root is stored as Mat A[1,1] (variable "X or another letter" in terms of old models of calculators)

the 2nd root is stored as Mat A[2,1]

and so on

Interesting article about memories and variables

http://dave.brittens...m-vs-lists.html

• KamimuraCal likes this

### #5 KamimuraCal

KamimuraCal

Newbie

• Members
• 16 posts
• Gender:Male

Posted 02 December 2020 - 04:33 PM

Interesting article about memories and variables:

http://dave.brittens...m-vs-lists.html

Thanks for the link, it could be useful for me at some point too.

### Also tagged with one or more of these keywords: cg50

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users