フリー計算
フリー計算
[1-10] /330件 | 表示件数 | |
[1] 2024/02/28 08:08 - / - / - /
- ご意見・ご感想
- not,and,or の説明を詳しくしてほしい
[2] 2024/02/26 07:49 - / - / - /
- ご意見・ご感想
- returnやvoidについての説明をして欲しい
[3] 2024/02/16 09:14 20歳未満 / 小・中学生 / 非常に役に立った /
- 使用目的
- 宿題
[4] 2024/02/09 07:58 - / - / - /
- 使用目的
- nまでの素数表示(2024/02/08 08:20)
- ご意見・ご感想
- do{numeric sevev [int(sqrt(n))];
}while(false);
for(count=1;
kei_length(sevev)<count;
count=count+1)
{
for(x=1;
x<=count;
x=x+1){
while(mod(count,x)==0){print(count);}
}}
上記の式でタイムアウトしてしまった
どうしたらいいでしょうか?
[5] 2024/02/08 17:00 20歳未満 / 小・中学生 / 非常に役に立った /
- 使用目的
- 円周率の計算
- ご意見・ご感想
- 関数が豊富に掲載されていて、使いやすかった。130桁が最大なので円周率が計算できる。
[6] 2024/02/08 08:20 - / - / 役に立たなかった /
- 使用目的
- nまでの素数表示
(2024/02/07 15:03)
- ご意見・ご感想
- do{
numeric Max [int(sqrt(n))]
}
while(false);
for(count2=1;
kei_length(Max)<count2;
count2=count2+1)
{
for(x=1;
x<=count2;
x=x+1){
while(mod(count2,x)<>0){print(count2);}
}
}
なぜwhileが変数にでるんですか?
[7] 2024/02/07 15:03 - / - / 役に立たなかった /
- 使用目的
- maxまでの素数表示
- ご意見・ご感想
- do{
numeric Max [int(sqrt(max))]
}while(false);
for(count2=1;
kei_length(Max)<count2;
count2=count2+1)
{
for(x=1;
x<=count2;
x=x+1{
while(mod(count2,x)=0){print(count2);}
}
上記の式でなぜ()の数が合わないと表示されるんですか?
[8] 2024/02/05 19:13 - / - / 少し役に立った /
- ご意見・ご感想
- for(y=1;
y>sqrt(x);
y=y+1)
{for(a=1;
mod(x,y)<>0;
a=a+1)
{print(a);}println();}
で答えが出ないのは何ででしょうか?
いつもこのサイトにお世話になっています
- keisanより
- ひとつづつ分解して何が悪いかを検証するのが良いと思います。
[9] 2024/02/04 19:05 - / - / - /
- ご意見・ご感想
- numeric ax1[]={-2,-1,0,1,2};
numeric ax2[][]={0,-1,2,-3,4};
numeric ax3[][][]={0,2,-4,6,-8};
do{print(ax3[x]);}
while(x<=5);
kei_length(ax1);
function 0(numeric k[]){print(ax2[2]);};
function 0(numeric k[]){print(ax1[5]);};x
上記の式でタイムアウトしてしまった
どうしたらいいだろうか?
[10] 2024/02/03 12:00 - / - / - /
- 使用目的
- コラッツ予想
- ご意見・ご感想
- y=mod(a,2);
for(x=a;
y=0;
x=y+0)
{for(x=0;
y<>0;
x=(3y-1)+0)
{print(y);}println(y);}
でエラーになるのはどうしてでしょうか?
- keisanより
- 入れ子のfor文の中で同じ変数xの使用はまずいですよ。
アンケートにご協力頂き有り難うございました。
送信を完了しました。
【 フリー計算 】のアンケート記入欄
// TOP pageは直接記述
$uri = $_SERVER['REQUEST_URI'];
if( $uri != "/index.php" && $uri != "/"){
?>
}
?>