sudo snap install julia --classic
(base) yosepkim@sony:~$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.0 (2023-12-25)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/
julia> exit();
(base) yosepkim@sony:~$
julia> using Pkg
julia> Pkg.add("SymEngine")
Installing known registries into `~/.julia`
Updating registry at `~/.julia/registries/General.toml`
Resolving package versions...
Installed IrrationalConstants ─ v0.2.2
Installed Preferences ───────── v1.4.1
Installed RecipesBase ───────── v1.3.4
Installed JLLWrappers ───────── v1.5.0
Installed SymEngine ─────────── v0.11.0
Installed SpecialFunctions ──── v2.3.1
Installed PrecompileTools ───── v1.2.0
Installed LogExpFunctions ───── v0.3.26
Installed SymEngine_jll ─────── v0.11.1+0
Installed OpenSpecFun_jll ───── v0.5.5+0
Installed Compat ────────────── v4.12.0
Installed MPC_jll ───────────── v1.2.1+0
Installed DocStringExtensions ─ v0.9.3
Downloaded artifact: SymEngine
Downloaded artifact: OpenSpecFun
Downloaded artifact: MPC
Updating `~/.julia/environments/v1.10/Project.toml`
[123dc426] + SymEngine v0.11.0
Updating `~/.julia/environments/v1.10/Manifest.toml`
[34da2185] + Compat v4.12.0
[ffbed154] + DocStringExtensions v0.9.3
[92d709cd] + IrrationalConstants v0.2.2
[692b3bcd] + JLLWrappers v1.5.0
[2ab3a3ac] + LogExpFunctions v0.3.26
[aea7be01] + PrecompileTools v1.2.0
[21216c6a] + Preferences v1.4.1
[3cdcf5f2] + RecipesBase v1.3.4
[276daf66] + SpecialFunctions v2.3.1
[123dc426] + SymEngine v0.11.0
[2ce0c516] + MPC_jll v1.2.1+0
[efe28fd5] + OpenSpecFun_jll v0.5.5+0
[3428059b] + SymEngine_jll v0.11.1+0
[0dad84c5] + ArgTools v1.1.1
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[f43a241f] + Downloads v1.6.0
[7b1f6079] + FileWatching
[b77e0a4c] + InteractiveUtils
[b27032c2] + LibCURL v0.6.4
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[ca575930] + NetworkOptions v1.2.0
[44cfe95a] + Pkg v1.10.0
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[fa267f1f] + TOML v1.0.3
[a4e569a6] + Tar v1.10.0
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[e66e0078] + CompilerSupportLibraries_jll v1.0.5+1
[781609d7] + GMP_jll v6.2.1+6
[deac9b47] + LibCURL_jll v8.4.0+0
[e37daf67] + LibGit2_jll v1.6.4+0
[29816b5a] + LibSSH2_jll v1.11.0+1
[3a97d323] + MPFR_jll v4.2.0+1
[c8ffd9c3] + MbedTLS_jll v2.28.2+1
[14a3606d] + MozillaCACerts_jll v2023.1.10
[4536629a] + OpenBLAS_jll v0.3.23+2
[05823500] + OpenLibm_jll v0.8.1+2
[83775a58] + Zlib_jll v1.2.13+1
[8e850b90] + libblastrampoline_jll v5.8.0+1
[8e850ede] + nghttp2_jll v1.52.0+1
[3f19e933] + p7zip_jll v17.4.0+2
Precompiling project...
15 dependencies successfully precompiled in 6 seconds. 4 already precompiled.
julia> using SymEngine
julia> @vars x;
julia> f = x^2 + x/2 - sin(x)/x;
julia> diff(f, x)
1/2 + 2*x + sin(x)/x^2 - cos(x)/x