求幂? [英] Exponentation?

查看:80
本文介绍了求幂?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以建议我如何在C中编写一个代码,用于计算15字节的基值,由16字节的指数值驱动吗?

Could anybody suggest me how to write a code in C for calculating 15 bytes of base value powered to 64 bytes of exponent value?

推荐答案

你可以'' t raise<字节数>到<字节数>的功率。您可以将数字增加到数字,这取决于数字在那里的表示方式。如果它们是正整数,则需要15 *(2 ^ 512)字节的内存来存储结果。
You can''t raise <amount of bytes> to the power of <amount of bytes>. You can raise number to number,and it depends on how the numbers are represented there. If they are positive integers, it will take 15*( 2^512) bytes of memory to store the result.


@ newb16


ya wat you said是正确的。但我的问题是,在我的应用程序中,我确实有15字节值的值(即总数是15字节值),甚至指数值是64字节值。现在如何执行计算。必须分成字节和计算或任何其他方法?
@newb16
ya wat u said is right. but my problem is , in my application i do have value of 15 byte value.(i.e the total no. is 15 byte value) and even exponent value is 64 byte value.so now how to perform calculation for that. have to divide into bytes and calculate or any other method is there?


您的结果需要什么准确度和精度?
What accuracy and precision do you need for your result?


这篇关于求幂?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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