We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb50fc commit a5b2c19Copy full SHA for a5b2c19
crates/jrsonnet-stdlib/src/lib.rs
@@ -104,6 +104,7 @@ pub fn stdlib_uncached(settings: Rc<RefCell<Settings>>) -> ObjValue {
104
("asin", builtin_asin::INST),
105
("acos", builtin_acos::INST),
106
("atan", builtin_atan::INST),
107
+ ("atan2", builtin_atan2::INST),
108
("exp", builtin_exp::INST),
109
("mantissa", builtin_mantissa::INST),
110
("exponent", builtin_exponent::INST),
crates/jrsonnet-stdlib/src/math.rs
@@ -89,6 +89,11 @@ pub fn builtin_atan(x: f64) -> f64 {
89
x.atan()
90
}
91
92
+#[builtin]
93
+pub fn builtin_atan2(y: f64, x: f64) -> f64 {
94
+ y.atan2(x)
95
+}
96
+
97
#[builtin]
98
pub fn builtin_exp(x: f64) -> f64 {
99
x.exp()
0 commit comments