| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Symbolic Math Toolbox |
| Contents | Index |
| Learn more about Symbolic Math Toolbox |
mfun('function',par1,par2,par3,par4)
mfun('function',par1,par2,par3,par4) numerically evaluates one of the Maple special mathematical functions. If you use the MuPAD engine, Symbolic Math Toolbox software translates the name of the Maple function to a call to the appropriate MuPAD functions. If you use the Maple engine, the toolbox calls the Maple functions directly. Each par argument is a numeric quantity corresponding to a parameter for function. You can use up to four parameters. The last parameter specified can be a matrix, usually corresponding to X. The dimensions of all other parameters depend on the specifications for function. You can access parameter information for mfun functions in Syntax and Definitions of mfun Special Functions.
MuPAD software evaluates function using 16-digit accuracy. Each element of the result is a MATLAB numeric quantity. Any singularity in function is returned as NaN.
Evaluate Fresnel cosine integral:
mfun('FresnelC',0:5)The result is:
ans = 0 0.7799 0.4883 0.6057 0.4984 0.5636
Evaluate hyperbolic cosine integral:
mfun('Chi',[3*i 0])ans = 0.1196 + 1.5708i NaN
![]() | matlabFunction (sym) | mfunlist | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |