数学中的取绝对值是什么意思啊?

|a+b|
C语言中
ads(a+b)
是什么意思啊?
我知道啊,就是不知道绝对值是什么意思啊~
PS:我只有初2学历

1.绝对值的代数定义

一个正数的绝对值是它本身;一个负数的绝对值是它的相反数;零的绝对值是零.

2.绝对值的几何定义

在数轴上表示一个数的点离开原点的距离,叫做这个数的绝对值.

abs() 函数 是用来求绝对值的

其函数代码

abs
Calculates the absolute value.

int abs( int n );

Routine Required Header Compatibility
abs <stdlib.h> or <math.h> ANSI, Win 95, Win NT

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

The abs function returns the absolute value of its parameter. There is no error return.

Parameter

n

Integer value

Example

/* ABS.C: This program computes and displays
* the absolute values of several numbers.
*/

#include <stdio.h>
#include <math.h>
#include <stdlib.h>

void main( void )
{
int ix = -4, iy;
long lx = -41567L, ly;
double dx = -3.141593, dy;

iy = abs( ix );
printf( "The absolute value of %d is %d\n", ix, iy);

ly = labs( lx );
printf( "The absolute value of %ld is %ld\n", lx, ly);

dy = fabs( dx );
printf( "The absolute value of %f is %f\n", dx, dy );
}

Output

The absolute value of -4 is 4
The absolute value of -41567 is 41567
The absolute value of -3.141593 is 3.141593
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-07-22

绝对值是指一个数在数轴上所对应点到原点的距离,用“| |”来表示。|b-a|或|a-b|表示数轴上表示a的点和表示b的点的距离。

在数学中,绝对值或模数| x | 的非负值,而不考虑其符号,即| x | = x表示正x,| x | = -x表示负x(在这种情况下-x为正),| 0 | = 0。例如,3的绝对值为3,-3的绝对值也为3。数字的绝对值可以被认为是与零的距离。

扩展资料

在计算机语言或计算器中,绝对值函数常记作abs(x) 。

(1)绝对值函数是偶函数,其图形关于y轴对称。

(3)绝对值函数仅在原点不可微,其他点处可微。

(4)与符号函数的关系:∣x∣=sgn(x)·x 或 x=sgn(x)·∣x∣。

几何意义:

∣x∣表示x轴上的点 x 到原点的距离。

∣x―a∣表示x轴上的点 x 到点a的距离。

参考资料来源:百度百科-绝对值

参考资料来源:百度百科-绝对值函数

第2个回答  2012-06-29
绝对值用概念来说就是数轴上对应的一个点到原定的距离
一般说:正数的绝对值是它本身
零的绝对值还是零
负数的绝对值是他的相反数(相反数就是两个只有符号不同的两个数,比如说3和-3等)
多也可以得出,所有数的绝对值都是非负数(因为包括零)、
我六年级啊,水平可能不够,仅供参考啦
第3个回答  2006-08-06
不是ads(a+b) ,是abs(a+b),意思就是取得绝对值
第4个回答  2006-08-06
www.793.net.cn

免费刷网站IP,刷世界排名

欢迎注册!