nsdrozario / math-worksheet-generator

Mathemacure, the ultimate math worksheet generator.
Other
1 stars 1 forks source link

Polynomial string to function not working #27

Closed nsdrozario closed 4 years ago

nsdrozario commented 4 years ago

In math.php a new function has been added: poly_to_func. It is currently not working because there is an issue with the concept of currying, which is a function returning another function; this is a concept of the programming paradigm known as functional programming. It is highly recommended that one researches functional programming and currying before attempting to solve this bug.

Goal: to create a function that takes a string of a polynomial as an input, and extracts coefficients and exponents from the string, and then returning a function that sums each term using each coefficient and exponent.

nsdrozario commented 4 years ago

fixed