ImageVerifierCode 换一换
格式:DOC , 页数:6 ,大小:101KB ,
资源ID:5394620      下载积分:10 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.docduoduo.com/d-5394620.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(高中数学必修三程序大全.doc)为本站会员(gnk289057)主动上传,道客多多仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知道客多多(发送邮件至docduoduo@163.com或直接QQ联系客服),我们立即给予删除!

高中数学必修三程序大全.doc

1、Program and list(应用程序和目录)01. BAS 求和 a+aa+aaa+aaaa+aaaa(a 大于等1 小于等于 9 的整数Input “a=”;aInput “n=”;nT=0S=0i=1While i0 thenPrint “absolute value is”;xelseIf x=0 thenPrint “absolute value is”;0 ElsePrint “abosolute value is”;-xEnd ifEnd ifend06.ABS任给一个自然数 a( 1,9a输出 aaaaa(n 个 a 组成的 n 位数)Input “a=”;aInput “

2、n=”;nS=0i=1while i=0 thenLet p=-b/(2*a)Let q=SQR(d)/(2*a)If d=0 thenPrint “the equation is one real root”;pElseX1=p+qX2=p-qPrint “two difference root”Print “x1=”;x1;”x2=”;x2End if End if End09.ABS解二元一次方程组 11220axbycProgram:Input a1,b1,c1,a2,b2,c2 m=a1*b2-a2*b1p=b1*c2-b2*c1q=c1*a2-c2*a1if mnlet s=a*s

3、print :s=”;send11.BAS 求两个正整数的最大公约数【辗转相除法】program:input “m=”;minput “n=”;nif m0r= m mod nif r=0 thenprint “the greatest common divisor of m and n is”;nelsem=nn=rend ifwendend12.BAS 把三个数 a,b,c 按从大到小的顺序排列input a,b,cif a=b thenif a=c thenif b=c thenprint a,b,celseprint a,c,bend ifelseprint c,a,bend ifel

4、seif b=c thenif a=c thenprint b,a,celseprint b,c,aend ifelse print c,b,aend ifend ifend14.BAS任给一个大于 1 的自然数,判断这个数的奇偶性。programinput “n=”;nif n=2 thenprint “the number you input is a prime”elsei=2do r=n mod ii=i+1loop until in-1 or r=0if r=0 thenprint “the number is not a prime”elseprint “the number is

5、 a prime”end ifend ifend15.BAS求和: 34512n input “n=”;ni=1s=0while in print “s=”;send17.求一个数的方根,开方(The extraction of a root of a quantity)(extraction of root)方根,开方program:input x,nm=1/ny=xmprint yend18.BAS求一个数的算术平方根program:input “x=”;xif x=0 thenprint “arithmetic square root is”;sqr(x)else print “no a

6、rithmetic square root”end ifend19BAS 判断年份是闰年的程序input “your year is”;xif x mod 4=0 and x mod 100=1 theni=1f=1while i100End25BAS输出 1 到 100 之间的偶数PROGRAM:i=1dor=i mod 2if r=0 then print i;end if i=i+1loop until i100End26BAS输出 1 到 100 之间的 3 的倍数PROGRAM:i=1While i100End28BAS输出 1 到 100 之间的 3 的倍数PROGRAM:i=1d

7、or=i mod 2if r=0 then print i;end if i=i+1loop until i100End29.BAS 求两个正整数的最大公约数【辗转相除法】program:input “m=”;minput “n=”;nif mn then t=mm=nn=tend if dor= m mod nif r=0 thenprint “the greatest common divisor of m and n is”;nelsem=nn=rend ifloop until r=0end30.BAS 求两个正整数的最大公约数【辗转相除法】the program is :1:input m,n2:if mn thent=mm=nn=tend if 3:r=m mod n4:if r=0 thenif n=1 thenprint “two number is each other prime number”elseprint nend ifelsem=nn=rgoto 3end if5:end30.BAS 求 5 次多项式 43210()fxaxaxa当 时的什值0program :input a5,a4,a3,a2,a2,a1,a0input x0n=1v=a5while n=5i=5-nv=v*x0+ain=n+1wendprint vend

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报