Skip to content

Jabsal/Polynomial-Aggregate-Linq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Polynomial-Aggregate-Linq

You are required to calculate the value of an nth-degree polynomial. The function is called Poly and the arguments are:

• int x - the value of x for the polynomial

• IEnumberable coeffs - the polynomial coefficients

Example:

• Input: 2, [3,4,5] and some other examples

• Output: 25 (calculated as 32^2+42+5)

Hint: you may need the overload of Aggregate° that takes a seed value. You may also need to introduce a separate variable for tracking the index of the element you're processing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages