2016-10-13 16:50:43 +01:00
|
|
|
# julia
|
|
|
|
|
|
|
|
> A high-level, high-performance dynamic programming language for technical computing.
|
2020-05-25 16:43:07 +01:00
|
|
|
> More information: <https://docs.julialang.org/en/v1/manual/getting-started/>.
|
2016-10-13 16:50:43 +01:00
|
|
|
|
2021-09-12 15:03:27 +01:00
|
|
|
- Start a REPL (interactive shell):
|
2016-10-13 16:50:43 +01:00
|
|
|
|
|
|
|
`julia`
|
|
|
|
|
|
|
|
- Execute a Julia program and exit:
|
|
|
|
|
|
|
|
`julia {{program.jl}}`
|
|
|
|
|
|
|
|
- Execute a Julia program that takes arguments:
|
|
|
|
|
|
|
|
`julia {{program.jl}} {{arguments}}`
|
|
|
|
|
|
|
|
- Evaluate a string containing Julia code:
|
|
|
|
|
|
|
|
`julia -e '{{julia_code}}'`
|
|
|
|
|
|
|
|
- Evaluate a string of Julia code, passing arguments to it:
|
|
|
|
|
|
|
|
`julia -e '{{for x in ARGS; println(x); end}}' {{arguments}}`
|
|
|
|
|
2020-05-25 16:43:07 +01:00
|
|
|
- Evaluate an expression and print the result:
|
|
|
|
|
|
|
|
`julia -E '{{(1 - cos(pi/4))/2}}'`
|
|
|
|
|
2024-04-16 11:54:27 +01:00
|
|
|
- Start Julia in multithreaded mode, using N threads:
|
2016-10-13 16:50:43 +01:00
|
|
|
|
2024-04-16 11:54:27 +01:00
|
|
|
`julia -t {{N}}`
|