mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-13 10:00:51 +01:00
Improved consonant precision
This commit is contained in:
parent
6518194582
commit
865947dccd
@ -11,13 +11,34 @@ pub const INIT: &'static str = "unit deg = (rad*180)/pi";
|
||||
lazy_static! {
|
||||
pub static ref CONSTANTS: HashMap<&'static str, f64> = {
|
||||
let mut m = HashMap::new();
|
||||
m.insert("pi", 3.14159265);
|
||||
m.insert("π", 3.14159265);
|
||||
m.insert("e", 2.71828183);
|
||||
m.insert("tau", 6.28318530);
|
||||
m.insert("τ", 6.28318530);
|
||||
m.insert("phi", 1.61803399);
|
||||
m.insert("ϕ", 1.61803399);
|
||||
m.insert(
|
||||
"pi",
|
||||
3.1415926535897932384626433832795028841971693993751058209749445923,
|
||||
);
|
||||
m.insert(
|
||||
"π",
|
||||
3.1415926535897932384626433832795028841971693993751058209749445923,
|
||||
);
|
||||
m.insert(
|
||||
"e",
|
||||
2.7182818284590452353602874713526624977572470936999595749669676277,
|
||||
);
|
||||
m.insert(
|
||||
"tau",
|
||||
6.2831853071795864769252867665590057683943387987502116419498891846,
|
||||
);
|
||||
m.insert(
|
||||
"τ",
|
||||
6.2831853071795864769252867665590057683943387987502116419498891846,
|
||||
);
|
||||
m.insert(
|
||||
"phi",
|
||||
1.6180339887498948482045868343656381177203091798057628621354486227,
|
||||
);
|
||||
m.insert(
|
||||
"ϕ",
|
||||
1.6180339887498948482045868343656381177203091798057628621354486227,
|
||||
);
|
||||
m
|
||||
};
|
||||
pub static ref UNARY_FUNCS: HashMap<&'static str, (UnaryFuncInfo, &'static str)> = {
|
||||
|
Loading…
Reference in New Issue
Block a user