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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

4-Participant

## Identifying coefficients, and storing them as variables

Hi,

I seem to have worn the internet thin, and have scoured posts here aswell and have not found what i'm looking for. i might have misset it, if so i apologice. Also, please excuse my english.

So what i'm looking for is a way to have mathcad prime look at an equation and store coefficients as variables - maybe by comparing the equation to a "mask". please take a look at the attached file to see what i'm talking about.

/Tonni

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald I
(To:tlutze)

If you input the equation in the right way, you can have the coefficients as a vector:

So this can be made to work with polynomials.  How would you get an equation without typing it in?

10 REPLIES 10
23-Emerald I
(To:tlutze)

If you input the equation in the right way, you can have the coefficients as a vector:

So this can be made to work with polynomials.  How would you get an equation without typing it in?

23-Emerald III
(To:tlutze)

You can do this (in Mathcad 11, something similar should work in Prime:

But this fails in Mathcad 11, because the coeffs symbolic instruction expects the expression to be a polynomial that is expressed in th argument of coeffs:

Maybe by combining the results it could be made to work...

Success!
Luc

23-Emerald I
(To:LucMeekes)

Pretty cumbersome:

23-Emerald I
(To:Fred_Kohlhepp)

Then there's this:

or, reversing orders:

23-Emerald I
(To:Fred_Kohlhepp)

And this we might be able to use:

23-Emerald I
(To:Fred_Kohlhepp)

And finally:

24-Ruby V
(To:Fred_Kohlhepp)

Pretty good stuff!

Wouldn't have thought of that.

24-Ruby V
(To:tlutze)

I also can't think of anything else than what Luc already had shown:

[EDIT: In the meantime Fred had proved that its possible to do using a cool two step method.]

I guess it could be possible to tun those calculations into a program in Versions of Mathcad from 15 down but this sure is not possible to do in Prime as it does not allow symbolic calculations inside of a program.

but we could at least do something like

BTW, here's some kind of the reverse direction:

4-Participant
(To:tlutze)

Oh goodness, so many answers - i see i have some stuff to experiment with. Thanks

I'll look into each answer to see which best suits my needs and get back to you.

/Tonni

4-Participant
(To:tlutze)

Sorry took me some time to get back, with some fiddling i were able to make use of most of the answers. so Thank you all!
Now the dilemma is the points, since i could use most, i'm going to assign them to the first answer.

Thanx again.

/Tonni

Announcements
Top Tags