Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 在颤振表达式中将弧度转换为度_Flutter_Dart_Flutter Dependencies - Fatal编程技术网

Flutter 在颤振表达式中将弧度转换为度

Flutter 在颤振表达式中将弧度转换为度,flutter,dart,flutter-dependencies,Flutter,Dart,Flutter Dependencies,我有一个来自用户的输入表达式,其中可能有sin(),cos()和tan(),还有多维函数,比如sin(60+cos(30)) 我使用math_表达式来计算表达式,但是这个包使用弧度而不是度。如果我想使用度而不是弧度,我应该怎么做?1 rad=180°/π 1度=(1弧度*π)/180 我知道如何将弧度转换为度,我想解析字符串,以便弧度转换为度。那么你应该把它放在你的问题中

我有一个来自用户的输入表达式,其中可能有
sin()
cos()
tan()
,还有多维函数,比如
sin(60+cos(30))

我使用math_表达式来计算表达式,但是这个包使用弧度而不是度。如果我想使用度而不是弧度,我应该怎么做?

1 rad=180°/π 1度=(1弧度*π)/180


我知道如何将弧度转换为度,我想解析字符串,以便弧度转换为度。那么你应该把它放在你的问题中