1:
|
val differentiateAt : symbol : Expression -> value : Expression -> expression : Expression -> Expression
|
Вычисляет значение производной по заданному символу (symbol)
в заданной точке (value)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
|
let f = "3*x^3" |> Infix.parseOrUndefined
let x = symbol "x"
let point = 2Q
let f'x = Calculus.differentiateAt x point f
printfn "f (x) = %s" (Infix.format f)
Calculus.differentiate x f
|> Infix.format
|> printfn "f'(x) = %s"
printfn "f'(%s) = %s"
(Infix.format point) (Infix.format f'x)
|
1:
2:
3:
|
f (x) = 3*x^3
f'(x) = 9*x^2
f'(2) = 36
|