权力 - 新手 [英] power - novice

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

问题描述

我只想提高一个数字。

例如:

16 ^ 2

pow() - 函数cmath似乎还不够。关于valarray,我读过

。这真的很难吗?

你能给我一个例子。


谢谢Roman

I just want to raise a number to a power.
e.g.:
16^2
The pow()-function of cmath seems to be not enough. I''ve read
about valarray. Is it really so difficult?
Can you give me an example.

Thanks Roman

推荐答案

" Roman T?ngi" < RO ********** @ bluewin.ch>写道:
"Roman T?ngi" <ro**********@bluewin.ch> writes:
我只想提高一个数字。
例如:
16 ^ 2
pow() - cmath的功能似乎还不够。
以什么方式不够?出了什么问题?

我读过关于valarray的文章。这真的很难吗?
I just want to raise a number to a power.
e.g.:
16^2
The pow()-function of cmath seems to be not enough. In what way "not enough"? What went wrong?
I''ve read about valarray. Is it really so difficult?



这个问题与pow()有关吗?


Is this question related to the pow() one?




Tim Love < tp*@eng.cam.ac.uk> schrieb im Newsbeitrag

news:d2 ********** @ gemini.csx.cam.ac.uk ...

"Tim Love" <tp*@eng.cam.ac.uk> schrieb im Newsbeitrag
news:d2**********@gemini.csx.cam.ac.uk...
" Roman T? NGI" < RO ********** @ bluewin.ch>写道:
"Roman T?ngi" <ro**********@bluewin.ch> writes:
我只想提高一个数字。
例如:
16 ^ 2
pow() - cmath的功能似乎还不够。
I just want to raise a number to a power.
e.g.:
16^2
The pow()-function of cmath seems to be not enough.


以什么方式不够?出了什么问题?


In what way "not enough"? What went wrong?

我读过有关valarray的内容。这真的很难吗?
I''ve read about valarray. Is it really so difficult?


这个问题与pow()有关吗?


Is this question related to the pow() one?




我只知道数学的pow()。 h。

请告诉我请以最简单的方式(对于初学者)如何筹集

示例16到2的幂。



I only know pow() of math.h.
Just tell me please the easiest way (for a beginner) how to raise for
example 16 to the power of 2.


Roman T?ngi写道:
Roman T?ngi wrote:
[..]
我只知道math.h的pow()。


应该足以满足您的需求。

请告诉我最简单的方法(对于初学者)如何筹集
示例16到2的力量。
[..]
I only know pow() of math.h.
Should be enough for your purposes.
Just tell me please the easiest way (for a beginner) how to raise for
example 16 to the power of 2.




pow(16,2)


这是一个技巧问题吗?你不是只是说你知道*'''pow''吗?



pow(16,2)

Is this a trick question? Didn''t you just say that you *knew* ''pow''?


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

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