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/08/17 22:56:39
![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](/uploads/image/z/11453738-50-8.jpg?t=matlab%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F%3E%3E+format+short%3E%3E+pians+%3D3.1416%3E%3E+format+long%3E%3E+pians+%3D3.14159265358979%3E%3E+format+short+e%3E%3E+pians+%3D3.1416e%2B000%3E%3E+format+long+e%3E%3E+pians+%3D3.141592653589793e%2B000%E4%B9%A6%E4%B8%8A%E8%AF%B4short%E6%98%AF4%E4%BD%8D%E5%B0%8F%E6%95%B0%2Clong%E6%98%AF15%E4%B8%BA%E6%95%B0%2Cshort+e%E6%98%AF5%E4%BD%8D%E7%A7%91%E5%AD%A6%E8%AE%A1%E6%95%B0%E6%B3%95%2Cl)
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位. 当然科学计数法时,小数点前也只有一位.