This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use, first add your evaluateP and power functions to the bottom of the | |
# file where specified. | |
# Next, edit the values of POLYORDER, COEFFICIENTS, and ARGX to whatever you | |
# want. Test what the polynomial will return with something like wolfram alpha | |
# and then assemble it in Mars and run it. The program just returns the final | |
# value. | |
.data | |
ZERO: .float 0.0 | |
ONE: .float 1.0 |