File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
docs/3-web-servers/03-module Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -247,5 +247,15 @@ console.log(format(new Date(), "yyyy年MM月dd日"));
247247
2482481 . サンプルコードの dateFns 変数の中身をデバッガで観察してみましょう。
2492492 . [ ` mathjs ` パッケージ] ( https://www.npmjs.com/package/mathjs ) は、JavaScript で複雑な計算を行うためのライブラリです。このライブラリを用いて、$\log(x)$ を $x$ について微分した式を求めてください。
250+ <Answer >
250251
251- <ViewSource url ={import.meta.url} path =" _samples/math-js " noCodeSandbox />
252+ [ ` mathjs.derivative ` 関数] ( https://mathjs.org/docs/reference/functions/derivative.html ) を用いると、微分した式を求めることができます。
253+
254+ ``` javascript
255+ import { derivative } from " mathjs" ;
256+ console .log (derivative (" log(x, e)" , " x" ).toString ());
257+ ```
258+
259+ <ViewSource url ={import.meta.url} path =" _samples/math-js " noCodeSandbox />
260+
261+ </Answer >
You can’t perform that action at this time.
0 commit comments