-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonata.lua
65 lines (51 loc) · 2.11 KB
/
sonata.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/local/bin/lua
-- Lua based mathematical program
-- This file is a part of 'sonata.matlib' collection, 2017 - 2024.
-- The software is provided 'as is', without warranty of any kind, express or implied.
--================ CONFIGURATION ===================
-- Path ('sonata.lua' location)
--SONATA_ADD_PATH = 'path/to/sonata/'
-- Text coloring
--SONATA_USE_COLOR = true
-- Unicode symbols for function plot
--SONATA_ASCIIPLOT_UNICODE = true
-- Reserve aliases (keywords)
--SONATA_PROTECT_ALIAS = true
-- Uncomment to set the localization file
-- Windows: to use Unicode symbols call in console
-- chcp 65001
--SONATA_LOCALIZATION = 'ru.lua'
--=================== MODULES =======================
-- List of modules in the 'matlib' library.
-- Aliases can be changed.
use = {
-- name alias
asciiplot = "Ap", -- use pseudo-graphic to print figures
bigint = "Int", -- manipulations with integers
complex = "Z", -- complex numbers
data = "D", -- data processing
graph = "Graph", -- operations with graphs
-------------------------
main = "Main", -- common functions
matrix = "Mat", -- matrices and linear algebra
numeric = "Num", -- numeric algorithms
polynomial = "Poly", -- operations with polynomials and splines
random = "Rand", -- random number generators
-------------------------
rational = "Rat", -- rational numbers and continued fractions
units = "U", -- units conversation
const = "C", -- physical and other constants
symbolic = "Sym", -- some symbolic methods
geodesy = "Geo", -- geodesy transformations
-------------------------
gnuplot = "Gp", -- GnuPlot 'binding'
lens = "Lens", -- paraxial optics and laser beams
quaternion = "Quat", -- working with quaternions
qubit = "Qb", -- emulate quantum computations
special = "Spec", -- list of 'special' functions
}
--===================== RUN =========================
if SONATA_ADD_PATH then
package.path = string.format("%s;%s?.lua", package.path, SONATA_ADD_PATH)
end
require('core.load')