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 aae7834 commit 8dbfe10Copy full SHA for 8dbfe10
src/main.rs
@@ -362,6 +362,24 @@ impl Executor {
362
self.stack.push(Type::Number(a.round()));
363
}
364
365
+ // 三角関数サイン
366
+ "sin" => {
367
+ let number = self.pop_stack().get_number();
368
+ self.stack.push(Type::Number(number.sin()))
369
+ }
370
+
371
+ // 三角関数コサイン
372
+ "cos" => {
373
374
+ self.stack.push(Type::Number(number.cos()))
375
376
377
+ // 三角関数タンジェント
378
+ "tan" => {
379
380
+ self.stack.push(Type::Number(number.tan()))
381
382
383
// AND論理演算
384
"and" => {
385
let b = self.pop_stack().get_bool();
0 commit comments