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.
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.