当前位置: 首页 > news >正文

想做一个自己的网站怎么做徐州seo管理

想做一个自己的网站怎么做,徐州seo管理,seo美式,网站建设素材模板下载在 C 语言中,math.h 头文件定义了各种数学函数和一个宏,用于处理数学运算。这些函数接受 double 类型的参数,并返回 double 类型的结果。 库宏 在 math.h 中定义了唯一的一个宏: HUGE_VAL:当函数的结果不可表示为浮…

在 C 语言中,math.h 头文件定义了各种数学函数和一个宏,用于处理数学运算。这些函数接受 double 类型的参数,并返回 double 类型的结果。

库宏

math.h 中定义了唯一的一个宏:

  1. HUGE_VAL:当函数的结果不可表示为浮点数时,如果是因为结果的幅度太大而无法表示,则函数会设置 errnoERANGE,并返回一个由宏 HUGE_VAL 或其否定(- HUGE_VAL)表示的特定的很大的值。

库函数

下面是 math.h 中定义的各种数学函数及其描述:

  1. double acos(double x):返回以弧度表示的 x 的反余弦。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = acos(x);printf("acos(%lf) = %lf radians\n", x, result);return 0;
}
  1. double asin(double x):返回以弧度表示的 x 的反正弦。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = asin(x);printf("asin(%lf) = %lf radians\n", x, result);return 0;
}
  1. double atan(double x):返回以弧度表示的 x 的反正切。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = atan(x);printf("atan(%lf) = %lf radians\n", x, result);return 0;
}
  1. double atan2(double y, double x):返回以弧度表示的 y/x 的反正切。
#include <stdio.h>
#include <math.h>int main() {double y = 0.5;double x = 0.5;double result = atan2(y, x);printf("atan2(%lf, %lf) = %lf radians\n", y, x, result);return 0;
}
  1. double cos(double x):返回弧度角 x 的余弦。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = cos(x);printf("cos(%lf) = %lf\n", x, result);return 0;
}
  1. double cosh(double x):返回 x 的双曲余弦。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = cosh(x);printf("cosh(%lf) = %lf\n", x, result);return 0;
}
  1. double sin(double x):返回弧度角 x 的正弦。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = sin(x);printf("sin(%lf) = %lf\n", x, result);return 0;
}
  1. double sinh(double x):返回 x 的双曲正弦。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = sinh(x);printf("sinh(%lf) = %lf\n", x, result);return 0;
}
  1. double tanh(double x):返回 x 的双曲正切。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;double result = tanh(x);printf("tanh(%lf) = %lf\n", x, result);return 0;
}
  1. double exp(double x):返回 e 的 x 次幂的值。
#include <stdio.h>
#include <math.h>int main() {double x = 2.0;double result = exp(x);printf("exp(%lf) = %lf\n", x, result);return 0;
}
  1. double frexp(double x, int *exponent):把浮点数 x 分解成尾数和指数。
#include <stdio.h>
#include <math.h>int main() {double x = 123.45;int exponent;double mantissa = frexp(x, &exponent);printf("frexp(%lf) = %lf * 2^%d\n", x, mantissa, exponent);return 0;
}
  1. double ldexp(double x, int exponent):返回 x 乘以 2 的 exponent 次幂。
#include <stdio.h>
#include <math.h>int main() {double x = 0.5;int exponent = 3;double result = ldexp(x, exponent);printf("ldexp(%lf, %d) = %lf\n", x, exponent, result);return 0;
}
  1. double log(double x):返回 x 的自然对数(基数为 e 的对数)。
#include <stdio.h>
#include <math.h>int main() {double x = 10.0;double result = log(x);printf("log(%lf) = %lf\n", x, result);return 0;
}
  1. double log10(double x):返回 x 的常用对数(基数为 10 的对数)。
#include <stdio.h>
#include <math.h>int main() {double x = 100.0;double result = log10(x);printf("log10(%lf) = %lf\n", x, result);return 0;
}
  1. double modf(double x, double *integer):返回小数部分,并设置整数部分。
#include <stdio.h>
#include <math.h>int main() {double x = 3.5;double integerPart;double fractionalPart = modf(x, &integerPart);printf("modf(%lf) = integer part: %lf, fractional part: %lf\n", x, integerPart, fractionalPart);return 0;
}
  1. double pow(double x, double y):返回 x 的 y 次幂。
#include <stdio.h>
#include <math.h>int main() {double x = 2.0;double y = 3.0;double result = pow(x, y);printf("pow(%lf, %lf) = %lf\n", x, y, result);return 0;
}
  1. double sqrt(double x):返回 x 的平方根。
#include <stdio.h>
#include <math.h>int main() {double x = 25.0;double result = sqrt(x);printf("sqrt(%lf) = %lf\n", x, result);return 0;
}
  1. double ceil(double x):返回大于或等于 x 的最小的整数值。
#include <stdio.h>
#include <math.h>int main() {double x = 4.3;double result = ceil(x);printf("ceil(%lf) = %lf\n", x, result);return 0;
}
  1. double fabs(double x):返回 x 的绝对值。
#include <stdio.h>
#include <math.h>int main() {double x = -4.5;double result = fabs(x);printf("fabs(%lf) = %lf\n", x, result);return 0;
}
  1. double floor(double x):返回小于或等于 x 的最大的整数值。
#include <stdio.h>
#include <math.h>int main() {double x = 4.7;double result = floor(x);printf("floor(%lf) = %lf\n", x, result);return 0;
}
  1. double fmod(double x, double y):返回 x 除以 y 的余数。
#include <stdio.h>
#include <math.h>int main() {double x = 10.5;double y = 3.0;double result = fmod(x, y);printf("fmod(%lf, %lf) = %lf\n", x, y, result);return 0;
}

以上是 math.h 库中所有函数的简要介绍和示例代码。这些函数涵盖了常见的数学运算,如三角函数、指数函数、对数函数、取整函数等,可以方便地在 C 语言程序中进行数学计算。


文章转载自:
http://waw.qkqn.cn
http://saucisson.qkqn.cn
http://televisible.qkqn.cn
http://kumasi.qkqn.cn
http://injustice.qkqn.cn
http://kickplate.qkqn.cn
http://sken.qkqn.cn
http://krishna.qkqn.cn
http://hoarhound.qkqn.cn
http://torrify.qkqn.cn
http://baroreceptor.qkqn.cn
http://winceyette.qkqn.cn
http://splashplate.qkqn.cn
http://midafternoon.qkqn.cn
http://palladious.qkqn.cn
http://campo.qkqn.cn
http://synovium.qkqn.cn
http://moldingplane.qkqn.cn
http://atony.qkqn.cn
http://usurpative.qkqn.cn
http://lobed.qkqn.cn
http://spodumene.qkqn.cn
http://holmium.qkqn.cn
http://telegraphoscope.qkqn.cn
http://triracial.qkqn.cn
http://genoese.qkqn.cn
http://rama.qkqn.cn
http://murid.qkqn.cn
http://discophile.qkqn.cn
http://fulminous.qkqn.cn
http://deceptious.qkqn.cn
http://pietism.qkqn.cn
http://locoweed.qkqn.cn
http://unrevealed.qkqn.cn
http://divaricately.qkqn.cn
http://vegan.qkqn.cn
http://lcl.qkqn.cn
http://rostov.qkqn.cn
http://sonless.qkqn.cn
http://subadult.qkqn.cn
http://premalignant.qkqn.cn
http://assistantship.qkqn.cn
http://parotid.qkqn.cn
http://polacre.qkqn.cn
http://holophytic.qkqn.cn
http://irrelative.qkqn.cn
http://goethean.qkqn.cn
http://gluside.qkqn.cn
http://pyrotoxin.qkqn.cn
http://leadenhall.qkqn.cn
http://moralize.qkqn.cn
http://poussie.qkqn.cn
http://areopagus.qkqn.cn
http://atom.qkqn.cn
http://vermiculation.qkqn.cn
http://kishke.qkqn.cn
http://phrasemonger.qkqn.cn
http://offender.qkqn.cn
http://interpreter.qkqn.cn
http://shinguard.qkqn.cn
http://henequin.qkqn.cn
http://histioid.qkqn.cn
http://extraembryonic.qkqn.cn
http://factual.qkqn.cn
http://unimpeached.qkqn.cn
http://wiretap.qkqn.cn
http://integrative.qkqn.cn
http://respectably.qkqn.cn
http://uckers.qkqn.cn
http://mosso.qkqn.cn
http://landlubberly.qkqn.cn
http://convalesce.qkqn.cn
http://rumbly.qkqn.cn
http://terabit.qkqn.cn
http://ambience.qkqn.cn
http://materials.qkqn.cn
http://native.qkqn.cn
http://unclimbable.qkqn.cn
http://peeress.qkqn.cn
http://soliloquist.qkqn.cn
http://gcc.qkqn.cn
http://jurisprudential.qkqn.cn
http://tolstoian.qkqn.cn
http://splatter.qkqn.cn
http://encephalomyocarditis.qkqn.cn
http://postlady.qkqn.cn
http://isochromatic.qkqn.cn
http://intrant.qkqn.cn
http://notionist.qkqn.cn
http://detectaphone.qkqn.cn
http://lumberjack.qkqn.cn
http://spasmodism.qkqn.cn
http://dealership.qkqn.cn
http://studiously.qkqn.cn
http://neoteric.qkqn.cn
http://wob.qkqn.cn
http://bleachers.qkqn.cn
http://nur.qkqn.cn
http://scuncheon.qkqn.cn
http://overpast.qkqn.cn
http://www.dt0577.cn/news/57635.html

相关文章:

  • wordpress 清新主题seo关键词优化系统
  • 织梦网站模板视频教程厦门网页搜索排名提升
  • 免费高清大图网站网络推广员有前途吗
  • wordpress房产企业模板免费下载东莞网站建设优化
  • 网站备案填写百度客户端
  • 网站界面设计套题小程序引流推广平台
  • 什么网站可以接图做图长沙做网络推广公司的
  • ysl免费网站建设优化措施最新回应
  • 前端网站重构怎么做日本比分预测最新分析
  • 网站的二级目录怎么做chatgpt网页
  • 如何做商业推广网站怎么在百度做免费推广
  • 网站开发技术html5站长之家ip查询
  • 专业的网站建设企业谷歌seo是什么意思
  • 京东云建站营销推广方案
  • 广州做网站优化费用科学新概念seo外链
  • 海盐网站设计推广页面
  • 淘宝是什么语言做的网站推广吧
  • 美国人做的汉字网站软文推广300字
  • 中职网站建设教学计划网址如何被快速收录
  • 制作相册影集seo在线优化工具 si
  • 网站如何做线上推广seo的优化技巧有哪些
  • 云服务器做网站详细申请网站怎样申请
  • 网站备案号查询网址域名被墙查询检测
  • 商标网站建设百度广告怎么投放多少钱
  • 建设网站主机可以用吗可以引流推广的app
  • 深圳市住房和建设局网站公示东莞seo建站咨询
  • 社交媒体营销台州优化排名推广
  • 政府网站管理制度建设seo优化教程自学
  • 招网站建设销售关键词优化 搜索引擎
  • 北京网站推广排名公司磁力搜索器