我如何评估:(2 + sqrt(5))^ 200000000 [英] how do i Evaluate : (2+sqrt(5)) ^ 200000000

查看:80
本文介绍了我如何评估:(2 + sqrt(5))^ 200000000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以在C#中编写一个简单的代码来评估以上内容.

答案应该以数字形式而不是指数形式

can anyone write a simple code in c# to evaluate the above.

answer should be in digits not in exponentional form

推荐答案

使用

一个非常简单的解析方法:
.NET的计算引擎 [
A very straight forward thing for parsing:
A Calculation Engine for .NET[^]

Regards.


要计算该表达式,请使用以下代码:
带有插件的可扩展数学表达式解析器 [
To compute that expression use this :
An extensible math expression parser with plug-ins[^]

And to show double type results without any decimal points you should format it as this :
String.Format("{0:0.}", result)



希望对您有所帮助.



Hope it helps.


这篇关于我如何评估:(2 + sqrt(5))^ 200000000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆