搜索资源列表
math
- 判断101-200之间有多少个素数,并输出所有素数。 1.程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。
panduansushu
- 题目:判断101-200之间有多少个素数,并输出所有素数。 1.程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。
Calculator-Sourcecode
- 1、实现十进制下的四则运算(加、减、乘、除)和四则混合运算 2、实现十进制转化为二进制或十六进制 3、实现进行一些常用的函数运算(比如sin、cos、tan、cot、sqrt、ln等) 4、实现“(”,“)”符号的表达式的计算-1 decimal, under the four operations ( addition, subtraction, multiplication, addition) and four mixed computing 2, decimal conv
C
- 实现如下简单计算功能 a) 后缀表达式求值功能,按后缀表达式键之后开始接受后缀表达式输入,接受的操作数均为个位数,按#键表示后缀表达式输入结束,并输出结果。 b) 基本数据运算功能+,-,×,/,%,1/X,sqrt c) 简单数据累加功能MR、MC、MS、M+ -Accept operands are in the single digits, press the# key to the end of the postfix expression input, and output
xiangmu1
- 判断三边是否能构成三角形 如果是的话并求周长面积-#include <stdio.h> #include <math.h> void main() { int a,b,c double p,s printf("请输入三角形的三边长:") scanf(" d, d, d",&a,&b,&c) if ((a+b>c&&a-b<c)==1) { p=(a+b+c)/2 s=sqrt(p*(p-
jisuanqi
- 用c#实现的计算器界面小程序,实现了+ - * / ln log 和 sqrt-With c# Realize calculator interface applet implements+-*/ln log and sqrt
oo
- /*判断101-200之间有多少个素数,并输出所有素数及素数的个数。 程序分析:判断素数的方法:用一个数分别去除2到sqrt(这个数),如果能被整除, 则表明此数不是素数,反之是素数。*/ -/* Determine how many prime numbers between 101-200, and the output of all the number of primes and prime numbers. Program analysis: Determini
sqrt
- 一个求取sqrt(x)的程序(仿计算器的功能),输入任意10位有效数字以内的正数,可以求取其正的平方根,要求精确到10位有效数字。实现了泰勒级数展开、牛顿迭代、二次插值、最佳一次逼近、卡马克平方根倒数。-A strike sqrt (x) of the program (like a calculator function), the positive input 10 of any less significant digits, the positive square root of the
