Ask Your Question

waddupbby's profile - activity

2018-02-16 17:33:58 -0600 received badge  Famous Question (source)
2017-03-16 20:43:00 -0600 received badge  Notable Question (source)
2016-12-16 09:50:39 -0600 received badge  Popular Question (source)
2016-12-11 03:47:13 -0600 received badge  Student (source)
2016-10-02 13:07:33 -0600 asked a question leading coefficient polynomial

Hello everybody,

I'm new to sagemath and python in general, and one of my course in Uni uses it... I have a vague and unclear tutorial the prof gave us and for now I know only the most basic commands.

I have to write a function that takes a polynomial of any degree and tells me the coefficient of the highest degree member (for example , 2x^4+3x^3 would be 2, 7x^3+2x^4+2 would be 7...).

I think the function would have to use "expand", "degree", and of course "coefficient". But i barely have any idea as how to write it.

If anyone could help me it would be great, I am kinda lost here...

Sorry for sloppy english and thanks in advance.