Skip to main content
16-Pearl
October 31, 2021
Solved

Built a polynome with just the coefficients in mathcad 15?

  • October 31, 2021
  • 3 replies
  • 3388 views

To all,

 

Note a mathematical question per say but one about “shortand” with Mathcad 15.

Is there a way of defining the coefficient of a polynome (say as a vector) and tell Mathcad that I want a full polynome like this: P(x)=a0+a1x+a2*x^2 + …. + an*x^n   (= SUM (an*x^n))

I can see the factor and expand commands but cannot find anything that does what I want/looking for.

 

Thanks

Best answer by Fred_Kohlhepp

If you want to use it as an operating (calculating) function, then you've already written it:

Fred_Kohlhepp_0-1635682885733.png

If you want it displayed as a full-length expression, I doubt it.

3 replies

24-Ruby III
October 31, 2021

Here's a tip:

 

Pic-1.png

 

23-Emerald I
October 31, 2021

If you want to use it as an operating (calculating) function, then you've already written it:

Fred_Kohlhepp_0-1635682885733.png

If you want it displayed as a full-length expression, I doubt it.

16-Pearl
October 31, 2021

thanks. It was just in case there is a "obvious" predefined function. Something like p(x)=polynome(a,x)

I found something in my library of useful functions but the sum will have to do

 

Thanks to both

25-Diamond I
October 31, 2021

You may also consider writing a small utility function which turns a vector into a polynomial function.

The example below also shows that the names of formal and actual argument must not be the same.

Of course I would not use a confusing naming like the one shown in a real world worksheet.

Werner_E_1-1635684441228.png

MC15 file attached