Javascript Angularjs在变量中计算jquery数学库表达式

Javascript Angularjs在变量中计算jquery数学库表达式,javascript,jquery,angularjs,Javascript,Jquery,Angularjs,我想用一个变量来计算下面的表达式(其中包含三元运算符和Javascript数学库关键字),如 var结果=评估结果 这应该给我一个值,从那里我将使用该值进行另一次计算 ((((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56)))) < 0.3)?(((((23)*((5-1))*3.7)/2.68)<1)?((24/((((23)*((5-1))*3.7)/2.68)))):(((((23)*((5-1))*3.7)/2.68)>1 &am

我想用一个变量来计算下面的表达式(其中包含
三元运算符
Javascript数学库
关键字),如

var结果=评估结果

这应该给我一个值,从那里我将使用该值进行另一次计算

((((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56)))) < 0.3)?(((((23)*((5-1))*3.7)/2.68)<1)?((24/((((23)*((5-1))*3.7)/2.68)))):(((((23)*((5-1))*3.7)/2.68)>1 && (((23)*((5-1))*3.7)/2.68)<1000)?(((24/(((23)*((5-1))*3.7)/2.68))*(1+(0.15*(Math.pow((((23)*((5-1))*3.7)/2.68),0.687)))))):(0.044))):((((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56)))) > 0.3) && ((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))<1))?(((24/((((23)*((5-1))*3.7)/2.68)+((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2))*(4.33+(((3.65-1.53)*((2+273)/2))/(1-0.353*((2+273)/2)))*Math.exp(-0.247*((((23)*((5-1))*3.7)/2.68)/((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2)))))))+((((4.5+0.38)*((0.03*(((23)*((5-1))*3.7)/2.68))+(0.48*Math.sqrt((((23)*((5-1))*3.7)/2.68)))))/(1+((0.03*(((23)*((5-1))*3.7)/2.68))+(0.48*Math.sqrt((((23)*((5-1))*3.7)/2.68))))))+(0.1*Math.pow(((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))),2))+0.2*Math.pow(((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))),8))*(Math.exp(-(((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))/(2*Math.sqrt((((23)*((5-1))*3.7)/2.68)))))+(0.6*((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))*Math.sqrt(62/2)))*(1-(Math.exp(-((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))/(((23)*((5-1))*3.7)/2.68))))))):(((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))>1 && (((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))<1.75)?((((24/((((23)*((5-1))*3.7)/2.68)+(1*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2))*(4.33+(((3.65-1.53)*((2+273)/2))/(1-0.353*((2+273)/2)))*Math.exp(-0.247*((((23)*((5-1))*3.7)/2.68)/(1*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2)))))))+((((4.5+0.38)*((0.03*(((23)*((5-1))*3.7)/2.68))+(0.48*Math.sqrt((((23)*((5-1))*3.7)/2.68)))))/(1+((0.03*(((23)*((5-1))*3.7)/2.68))+(0.48*Math.sqrt((((23)*((5-1))*3.7)/2.68))))))+(0.1*Math.pow((1),2))+0.2*Math.pow((1),8))*(Math.exp(-1/(2*Math.sqrt((((23)*((5-1))*3.7)/2.68)))))+(0.6*(1*Math.sqrt(62/2)))*(1-(Math.exp(-(1/(((23)*((5-1))*3.7)/2.68))))))+((4/3)*((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))-1)*(((0.9+(1.86*Math.sqrt((1.75)/((((23)*((5-1))*3.7)/2.68))))*(2+2/(Math.pow((1.75*(Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2))),2)))+(1.058*Math.sqrt((2+273))/(1.75*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2)))-(Math.pow(1/(1.75*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2))),4)+(0.34/(Math.pow(1.75,2))))/(1+(1.86*Math.sqrt((1.75)/((((23)*((5-1))*3.7)/2.68))))))-((24/((((23)*((5-1))*3.7)/2.68)+(1*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2))*(4.33+(((3.65-1.53)*((2+273)/2))/(1-0.353*((2+273)/2)))*Math.exp(-0.247*((((23)*((5-1))*3.7)/2.68)/(1*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2)))))))+((((4.5+0.38)*((0.03*(((23)*((5-1))*3.7)/2.68))+(0.48*Math.sqrt((((23)*((5-1))*3.7)/2.68)))))/(1+((0.03*(((23)*((5-1))*3.7)/2.68))+(0.48*Math.sqrt((((23)*((5-1))*3.7)/2.68))))))+(0.1*Math.pow((1),2))+0.2*Math.pow((1),8))*(Math.exp(-1/(2*Math.sqrt((((23)*((5-1))*3.7)/2.68)))))+(0.6*(1*Math.sqrt(62/2)))*(1-(Math.exp(-(1/(((23)*((5-1))*3.7)/2.68)))))))))):(((0.9+(1.86*Math.sqrt(((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56)))))/((((23)*((5-1))*3.7)/2.68))))*(2+2/(Math.pow(((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))*(Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2))),2)))+(1.058*Math.sqrt((2+273))/((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2)))-(Math.pow(1/((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56))))*Math.sqrt((((52)*((2+273)))/(Math.sqrt(2)*(3.14)*(Math.pow(3,2))*(9)))/2))),4)+(0.34/(Math.pow((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56)))),2))))/(1+(1.86*Math.sqrt(((((5-1))/((Math.sqrt((1.3*3.4*((2+273)))/56)))))/((((23)*((5-1))*3.7)/2.68)))))))))) * (Math.pow((5-1),2))*(3.14*(Math.pow(3.7,2))/4))

((((5-1))/((数学)sqrt((1.3*3.4*((2+273)))/56))<0.3)?((((23)*((5-1))*3.7)/2.68)1&((23)*((5-1))*3.7)/2.68)0.3&((5-1))/((数学)sqrt((1.3*3.4*((2+273))/56))1&((5-1))/((数学)273*)((2+273))/56)不确定预期结果是什么,但是应该能够使用
var expr=/*数学表达式*/;console.log(expr)
返回表达式的结果。另外,请注意,对象不是“库”,而是其中的对象


var expr=(((((((5-1))/((数学)sqrt((1.3*3.4*((2+273)))/56))<0.3?(((((23)*((5-1))*3.7)/2.68)1&((23)*((5-1))*3.7)/2.68)0.3&(((5-1))/((数学)sqrt((1.3*3.4*((2+273))/56))1&(((5-1)/3*)/(数学)什么是jQuery数学库?表达式在这里返回
782.7423490194351
;这是预期结果吗?抱歉,这是Javascript数学库。库类似于Math.pow(3,2),它是3的平方。您是如何做到的。您能将结果放入$scope变量中吗??“您是如何做到的。”
console.log(/*expression*/)
你能把小提琴或密码笔递给我吗?