Created
January 30, 2024 01:19
-
-
Save danielrmeyer/eef811657ff012700e59c2532b5a8cea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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