Skip to content

Instantly share code, notes, and snippets.

@danielrmeyer
Created January 30, 2024 01:19
Show Gist options
  • Save danielrmeyer/eef811657ff012700e59c2532b5a8cea to your computer and use it in GitHub Desktop.
Save danielrmeyer/eef811657ff012700e59c2532b5a8cea to your computer and use it in GitHub Desktop.
import smile.cas.{Var, cot, pimpDouble}
@main
def symbolicDemoApp() =
println("Let do math")
val x = Var("x")
val y = Var("y")
val e = x ** 2 + y ** 3 + x ** 2 * cot(y ** 3)
val dx = e.d(x)
println(dx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment