|
SOLUTIONS
|
MATHEMATICA MATHLINK C 函数
MLParameters
是一个 MathLink 类型,用于包含针对 MLENV 对象的用户提供的参数或功能.
更多信息更多信息
- 使用 MLNewParameters() 初始化一个 MLParameters 对象.
- MLParameters 在 MathLink 标头文件 mathlink.h 中被声明.
范例范例打开所有单元关闭所有单元
基本范例 (1)基本范例 (1)
#include <stdlib.h>
#include "mathlink.h"
int main(int argc, char **argv)
{
MLENV env;
MLParameters p;
if(! MLNewParameters((char *)p, MLREVISION, MLAPIREVISION))
{ /* unable to initialize the parameters object */
MLSetAllocParameter((char *)p, malloc, free);
env = MLInitialize((char *)p);
if(env == (MLENV)0)
{ /* unable to initialize the MathLink environment */ }
/* ... */
MLDeinitialize(env);
return 0;
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
