DefineResourceFunction

DefineResourceFunction[f]

定义资源函数,可应用于参数以便给出与 f[] 一样的结果.

DefineResourceFunction[f,name]

name 作为资源函数的名称.

更多信息和选项

范例

打开所有单元关闭所有单元

基本范例  (2)

创建一个新的 ResourceFunction

从符号创建 ResourceFunction

对参数应用所得函数:

属性和关系  (2)

依赖关系被自动包含在资源中:

即使原始定义被清除,资源函数仍然有效:

如果没有给出纯函数的名称,系统会自动生成 "Untitled" 名称:

Wolfram Research (2019),DefineResourceFunction,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DefineResourceFunction.html.

文本

Wolfram Research (2019),DefineResourceFunction,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DefineResourceFunction.html.

CMS

Wolfram 语言. 2019. "DefineResourceFunction." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/DefineResourceFunction.html.

APA

Wolfram 语言. (2019). DefineResourceFunction. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DefineResourceFunction.html 年

BibTeX

@misc{reference.wolfram_2024_defineresourcefunction, author="Wolfram Research", title="{DefineResourceFunction}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/DefineResourceFunction.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_defineresourcefunction, organization={Wolfram Research}, title={DefineResourceFunction}, year={2019}, url={https://reference.wolfram.com/language/ref/DefineResourceFunction.html}, note=[Accessed: 21-November-2024 ]}