- 博客(16)
- 资源 (6)
- 收藏
- 关注
原创 File “<stdin>“, line 1 pip install PyQt5 ^SyntaxError: invalid syntax
不在python里面输入。
2023-04-10 21:32:27 329
原创 学习笔记_2021.3.7
C++ log怎么表示另外如果自定义以m为底,求log n的值需要double a=log(n)/log(m);https://blog.csdn.net/qq_40788630/article/details/79673539 向上取整【C++】向上、向下取整函数头文件 向上取整 ceil()ceil(1.5)=2ceil(0.5)=1ceil(1)=1向下取整 floor()ceil(1.5)=1ceil(0.5)=0ceil(1)=1...
2021-03-07 11:03:12 140
原创 1001 A+B Format (20 分)
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Specification:Each input file contains one test case. Each case contains a pair of
2019-07-03 15:22:40 102
原创 Romberg积分法(MATLAB)
% fprintf('请输入区间最小值:\n')% a=input('');% fprintf('请输入区间最大值:\n')% b=input('');% fprintf('请输入N:\n')% N = input('');% fprintf('请输入精度:\n')% ac = input('');a=0;b=1;N=25;ac=0.000001;T = [];S = [...
2019-05-26 19:16:12 4553 1
原创 lagrange插值多项式
% hanshu=input('请输入函数f(x):','s')fprintf('请输入差值区间最小值:\n')xmin=input('')fprintf('请输入差值区间最大值:\n')xmax=input('')fprintf('请输入等分份数:\n')n = input('')fprintf('请输入自变量x:\n')xin=input('')h=(xmax-xmin)/n...
2019-05-26 19:15:34 1930
原创 四阶龙格--库塔(Runge--Kutta)方法
CODEfprintf('请输入区间下界:\n')a=input('');fprintf('请输入区间上界:\n')b= input('');fprintf('请输入初值alpha:\n')alpha=input('');fprintf('请输入最大迭代次数N:\n')N = input('');x0=a;y0=alpha;h=(b-a)/N;K=[];x1=[];y...
2019-05-26 19:15:22 10000
原创 Newton迭代(matlab)
Waiting for modificationfprintf('请输入初值alpha:\n')alpha=input('');% fprintf('请输入精度1:\n')% e1=input('');% fprintf('请输入精度2:\n')% e2= input('');% fprintf('请输入最大迭代次数N:\n')% N = input('');e1=0.000...
2019-04-15 23:02:27 1598
原创 1001 害死人不偿命的(3n+1)猜想 (15 分)
经多番修改的代码:#include <stdio.h>#include <stdlib.h>int main(){ int n,k=0; scanf("%d",&n); while(n>1) { if (n%2==0) { n=n/2; } ...
2019-04-15 22:18:41 287
kudashi-win64-1.2.1-stable-zhannei_denglu_kds.exe
2021-07-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人