## Name:

degree gives the degree of a polynomial.

## Library name:

sollya_obj_t sollya_lib_degree(sollya_obj_t)

## Usage:

degree(f) : function -> integer

## Parameters:

• f is a function (usually a polynomial).

## Description:

• If f is a polynomial, degree(f) returns the degree of f.
• Contrary to the usage, Sollya considers that the degree of the null polynomial is 0.
• If f is a function that is not a polynomial, degree(f) returns -1.

## Example 1:

> degree((1+x)*(2+5*x^2));
3
> degree(0);
0

## Example 2:

> degree(sin(x));
-1
{"ft_lang_label":"__label__en","ft_lang_prob":0.50513864,"math_prob":0.97824574,"size":545,"snap":"2022-27-2022-33","text_gpt3_token_len":157,"char_repetition_ratio":0.19038817,"word_repetition_ratio":0.023255814,"special_character_ratio":0.30091742,"punctuation_ratio":0.16814159,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9964113,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-26T07:31:50Z\",\"WARC-Record-ID\":\"<urn:uuid:9b00ec5c-540b-42e8-a736-954248a0fdf8>\",\"Content-Length\":\"3099\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:788a6fea-fe00-427e-b41f-239082e0a902>\",\"WARC-Concurrent-To\":\"<urn:uuid:438cea57-5a26-4429-907f-406adbcdf6e4>\",\"WARC-IP-Address\":\"146.71.78.100\",\"WARC-Target-URI\":\"https://www.sollya.org/sollya-8.0/help.php?name=degree\",\"WARC-Payload-Digest\":\"sha1:4BCF33HE43D2PC6PB4S2BEKLKLHT3DOE\",\"WARC-Block-Digest\":\"sha1:SXYP3SBZ5FD6S66THBZUSLA7NMZF5MZD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103037649.11_warc_CC-MAIN-20220626071255-20220626101255-00570.warc.gz\"}"}