J 中的差异化

问题描述 投票:0回答:1

我是一个根据这本书(2015版)学习J的初学者。我能够运行所有示例,直到微积分章节中的这个示例:

   ^&3  d. 1
3&*@(^&2)

我在本地收到此错误:

|spelling error (invalid inflection)
|   ^&3 d. 1
|       ^

有人可以分享在 J 中计算导数的正确方法吗?

我运行以下 J 版本:

   9!:14 ''
j9.5.2/j64arm/darwin/commercial/www.jsoftware.com/2024-02-02T18:38:04/clang-14-0-0/SLEEF=1

并在 J Playground 中得到类似的错误。

j
1个回答
0
投票

来自过时的语法

支持微积分 (

d.
D.
D:
) - 这些原语的功能由
math/calculus
插件

提供

你必须

install 'math/calculus'
,尽管我认为在操场上你需要使用github链接:

install'github:jsoftware/math_calculus'
require'math/calculus'
*: deriv_jcalculus_ 1
© www.soinside.com 2019 - 2024. All rights reserved.