Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が作っているプログラムでは、シンボルの to パワーが必要なのですが、一般的なシンボル (^) を使おうとすると、それが認識されませんか?
代わりに使用する記号を誰か教えてもらえますか?
パウ記号はありません。C 関数 pow(x,y) を使用します。
double res = pow(5.0,2.0); //25
BSD ライブラリ関数マニュアル
名前: pow -- ベキ関数
あらすじ:
#include <math.h> double pow(double x, double y);
"pow" 関数を使用します。pow(4,3)4 の 3 乗が得られます。
pow(4,3)