JSXGraph Examples (2)

  1. Draggable exponential function
  2. Lituus

Back to first page

Draggable exponential function

Original example: link.

f(x)=exp(αx) f(x) = \exp(\alpha x)

For a modifiable point α\alpha.

b = board(xlim=[-5,5], ylim=[-2,20], axis=true)
b ++ point("α", 1, ℯ, label=js"{fontsize:20}")
@jsf f(x) = exp(x * log(valy(α))/valx(α))
b ++ plot(f)

Notes:

Lituus

Original example: link.

r2θ=k r^2\theta = k

where kk is controlled by a slider.

b = board(xlim=[-10,10], ylim=[-10,10], axis=true)
b ++ slider("k", [[1,8],[7,8],[0,4,10]])
@jsf f(φ) = 2*sqrt(val(k)/φ)
b ++ plot(f, a=0, b=8π, curvetype="polar")