I am calling the 'minimax' Maple function using the MAPLE command in the Symbolic Math toolbox as follows:
result = maple('minimax(x -> exp(x), 0..1, [3,3], x -> 1/exp(x), ''maxerror'')')
The MAPLE function returns the following string in variable 'result':
result = f := x -> (1.2602800445888353170924366790497+(.66158210209444427227482310507910+(.14246093837255028787615147350931+.13527434224563229808331124195992e-1*x)*x)*x)/(1.2602800461150506916370546709863+(-.59869809320400732192202261234153+(.11102133762163519871251090606741-.82048035877127366183518546907472e-2*x)*x)*x)
I would like to be able to retrieve the symbolic result of the call to 'minimax' in Maple and evaluate the resulting rational polynomial function in MATLAB without resorting to a cut-and-paste operation.
Best Answer