计算2 ^ 601结果为“1.#INF00” [英] calculating 2^601 results in "1.#INF00"

查看:72
本文介绍了计算2 ^ 601结果为“1.#INF00”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在601的功率下找到2,但是我的计算器没有足够大的屏幕,所以我决定为我的计算机制作一个程序来做这个,但当我得到一个很高的数字计算机只打印:1。#INF00。有什么办法吗?我的代码是以下代码:

展开 | 选择 | Wrap | 行号

解决方案

2 ^ 601(非常)非常非常大......

我怀疑这个数字对于任何基元都是两个大的(我怀疑即使2 ^ 100可能太大了)


< blockquote>其他人之前遇到过这个问题,你可以看看这个



其他人有com在此问题之前,您可以查看



我正在尝试编译NTL程序,但这是我从编译器得到的答案:



[链接器错误]未定义引用`touch_double(double *)''

[链接器错误]未定义引用`val_double(double)''

[链接器错误] undefined引用`val_double(double)''

[链接器错误]未定义引用`touch_double(double *)''

[链接器错误]未定义引用`val_double(双倍''




等...,我该怎么办?


I am trying to find 2 at the power of 601, but my calculator doesn''t have a large enough screen, so I decided to make a program for my computer to do this, but when I get to a high number the computer only prints : 1.#INF00. Is there any way to do it? My code is the fallowing:

Expand|Select|Wrap|Line Numbers

解决方案

2^601 is (VERY) very very very large.....
I suspect this number is two big for any of the primitives (I suspect even 2^100 is probably too large)


Others have come accross this problem before, you may like to take a look at this


Others have come accross this problem before, you may like to take a look at this

I''m trying to compile the NTL program but this is the answer I get from the compiler:


[Linker error] undefined reference to `touch_double(double*)''
[Linker error] undefined reference to `val_double(double)''
[Linker error] undefined reference to `val_double(double)''
[Linker error] undefined reference to `touch_double(double*)''
[Linker error] undefined reference to `val_double(double)''




and etc.., what do I have to do?


这篇关于计算2 ^ 601结果为“1.#INF00”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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