matlab显示格式>> format short>> pians =3.1416>> format long>> pians =3.14159265358979>> format short e>> pians =3.1416e+000>> format long e>> pians =3.141592653589793e+000书上说short是4位小数,long是15为数,short e是5位科学计数法,l
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 17:44:33
matlab显示格式>> format short>> pians =3.1416>> format long>> pians =3.14159265358979>> format short e>> pians =3.1416e+000>> format long e>> pians =3.141592653589793e+000书上说short是4位小数,long是15为数,short e是5位科学计数法,l
matlab显示格式
>> format short
>> pi
ans =
3.1416
>> format long
>> pi
ans =
3.14159265358979
>> format short e
>> pi
ans =
3.1416e+000
>> format long e
>> pi
ans =
3.141592653589793e+000
书上说short是4位小数,long是15为数,short e是5位科学计数法,long e是15位科学计数法,为啥long e后面有15个数.书有没有错
matlab显示格式>> format short>> pians =3.1416>> format long>> pians =3.14159265358979>> format short e>> pians =3.1416e+000>> format long e>> pians =3.141592653589793e+000书上说short是4位小数,long是15为数,short e是5位科学计数法,l
应该是书上有误,matlab没错.你看下帮助文件:
Floating-point format, with 15 digits after the decimal point for double; and 7 digits after the decimal point for single. For example, 3.141592653589793e+0
longe 指小数点后有15位. 当然科学计数法时,小数点前也只有一位.