Mudanças entre as edições de "Mmcc:aula 2"
m |
m |
||
Linha 6: | Linha 6: | ||
Copyright (c) 1989-2007 (ENPC) | Copyright (c) 1989-2007 (ENPC) | ||
___________________________________________ | ___________________________________________ | ||
+ | |||
-->5761000000 | -->5761000000 | ||
− | ans | + | ans = |
+ | |||
5.761D+09 | 5.761D+09 | ||
+ | |||
-->5761000000; | -->5761000000; | ||
+ | |||
-->5.7.61 | -->5.7.61 | ||
!--error 276 | !--error 276 | ||
Missing operator, comma, or semicolon. | Missing operator, comma, or semicolon. | ||
+ | |||
+ | |||
+ | |||
-->area=57800000 | -->area=57800000 | ||
− | area | + | area = |
+ | |||
57800000. | 57800000. | ||
+ | |||
-->populacao=5761000000; | -->populacao=5761000000; | ||
+ | |||
-->who | -->who | ||
+ | |||
Your variables are: | Your variables are: | ||
+ | |||
populacao area ans home | populacao area ans home | ||
− | compatibility_functilib | + | compatibility_functilib umfpacklib spreadsheetlib scilab2fortranlib |
− | maple2scilablib | + | maple2scilablib matiolib m2scilib texmacslib |
− | soundlib | + | soundlib scipadinternalslib scipadlib tclscilib |
− | metanetgraph_toolslib | + | metanetgraph_toolslib metaneteditorlib scicos_pal %scicos_menu |
− | %scicos_short | + | %scicos_short %scicos_help %scicos_display_mode modelica_libs |
− | scicos_pal_libs | + | scicos_pal_libs %scicos_lhb_list %CmenuTypeOneVector %scicos_gif |
− | %scicos_contrib | + | %scicos_contrib scicos_menuslib scicos_utilslib scicos_autolib |
− | differential_equationlib | + | differential_equationlib sparselib interpolationlib %z |
− | %s | + | %s polynomialslib optimizationlib cacsdlib |
− | signal_processinglib | + | signal_processinglib statisticslib linear_algebralib graphic_exportlib |
− | graphicslib | + | graphicslib parameterslib simulated_annealinglib genetic_algorithmslib |
− | stringlib | + | stringlib special_functionslib overloadinglib guilib |
− | jvmlib | + | jvmlib integerlib WSCI dynamic_linklib |
− | timelib | + | timelib functionslib elementary_functionlib data_structureslib |
− | iolib | + | iolib fileiolib demo_toolslib helptoolslib |
− | corelib | + | corelib PWD %F %T |
− | %nan | + | %nan %inf COMPILER SCI |
− | SCIHOME | + | SCIHOME TMPDIR MSDOS %gui |
− | %pvm | + | %pvm %tk %fftw $ |
− | %t | + | %t %f %eps %io |
− | %i | + | %i %e %pi |
− | using | + | using 33329 elements out of 5000000. |
− | and | + | and 87 variables out of 9231. |
+ | |||
Your global variables are: | Your global variables are: | ||
+ | |||
%modalWarning demolist %helps %helps_modules | %modalWarning demolist %helps %helps_modules | ||
− | %driverName | + | %driverName %exportFileName LANGUAGE %toolboxes |
%toolboxes_dir | %toolboxes_dir | ||
+ | |||
using 3010 elements out of 10999. | using 3010 elements out of 10999. | ||
− | and | + | and 9 variables out of 767. |
+ | |||
+ | |||
-->help who | -->help who | ||
+ | |||
-->who_user | -->who_user | ||
User variables are: | User variables are: | ||
+ | |||
help populacao area home | help populacao area home | ||
+ | |||
Using 616 elements ouf of 4965265 | Using 616 elements ouf of 4965265 | ||
+ | |||
-->populacao | -->populacao | ||
− | populacao | + | populacao = |
+ | |||
5.761D+09 | 5.761D+09 | ||
+ | |||
-->densidade = populacao/area | -->densidade = populacao/area | ||
− | densidade | + | densidade = |
+ | |||
99.67128 | 99.67128 | ||
+ | |||
-->area | -->area | ||
− | area | + | area = |
+ | |||
57800000. | 57800000. | ||
+ | |||
-->area=57800000 *1.6^2 | -->area=57800000 *1.6^2 | ||
− | area | + | area = |
+ | |||
1.480D+08 | 1.480D+08 | ||
+ | |||
-->help format | -->help format | ||
+ | |||
-->format( 'v',20) | -->format( 'v',20) | ||
+ | |||
-->area=57800000 *1.6^2 | -->area=57800000 *1.6^2 | ||
− | area | + | area = |
+ | |||
147968000.00000003 | 147968000.00000003 | ||
+ | |||
-->format( 'v',25) | -->format( 'v',25) | ||
+ | |||
-->area=57800000 *1.6^2 | -->area=57800000 *1.6^2 | ||
− | area | + | area = |
+ | |||
147968000.00000002980232 | 147968000.00000002980232 | ||
+ | |||
-->densidade = populacao/area | -->densidade = populacao/area | ||
− | densidade | + | densidade = |
+ | |||
38.9340938581314830458 | 38.9340938581314830458 | ||
+ | |||
-->areapessoal=1 / densidade | -->areapessoal=1 / densidade | ||
− | areapessoal | + | areapessoal = |
+ | |||
0.0256844297864954017319 | 0.0256844297864954017319 | ||
+ | |||
-->lado = sqrt( areapessoal ) | -->lado = sqrt( areapessoal ) | ||
− | lado | + | lado = |
+ | |||
0.1602636258996263940446 | 0.1602636258996263940446 | ||
+ | |||
-->lado = areapessoal ^ 1/2 | -->lado = areapessoal ^ 1/2 | ||
− | lado | + | lado = |
+ | |||
0.0128422148932477008659 | 0.0128422148932477008659 | ||
+ | |||
-->lado = areapessoal ^ (1/2) | -->lado = areapessoal ^ (1/2) | ||
− | lado | + | lado = |
+ | |||
0.1602636258996263940446 | 0.1602636258996263940446 | ||
+ | |||
-->lado = areapessoal ^ (1/2) // em metros | -->lado = areapessoal ^ (1/2) // em metros | ||
− | lado | + | lado = |
+ | |||
0.1602636258996263940446 | 0.1602636258996263940446 | ||
+ | |||
-->lado = areapessoal ^ (1/2)*1000 // em metros | -->lado = areapessoal ^ (1/2)*1000 // em metros | ||
− | lado | + | lado = |
+ | |||
160.26362589962639049190 | 160.26362589962639049190 | ||
+ | |||
-->populacao | -->populacao | ||
− | populacao | + | populacao = |
+ | |||
5761000000. | 5761000000. | ||
+ | |||
-->area | -->area | ||
− | area | + | area = |
+ | |||
147968000.00000002980232 | 147968000.00000002980232 | ||
+ | |||
-->area=57800000 *1.6^2 | -->area=57800000 *1.6^2 | ||
− | area | + | area = |
+ | |||
147968000.00000002980232 | 147968000.00000002980232 | ||
+ | |||
-->area=57800000 *1.609344^2 | -->area=57800000 *1.609344^2 | ||
− | area | + | area = |
+ | |||
149701312.77742081880569 | 149701312.77742081880569 | ||
+ | |||
-->densidade = populacao/area | -->densidade = populacao/area | ||
− | densidade | + | densidade = |
+ | |||
38.483296459567995384532 | 38.483296459567995384532 | ||
+ | |||
-->areapessoal=1 / densidade | -->areapessoal=1 / densidade | ||
− | areapessoal | + | areapessoal = |
+ | |||
0.0259852999092901985889 | 0.0259852999092901985889 | ||
+ | |||
-->lado = areapessoal ^ (1/2)*1000 // em metros | -->lado = areapessoal ^ (1/2)*1000 // em metros | ||
− | lado | + | lado = |
+ | |||
161.19956547488024511949 | 161.19956547488024511949 | ||
+ | |||
-->1 / 2 *2 | -->1 / 2 *2 | ||
− | ans | + | ans = |
+ | |||
1. | 1. | ||
+ | |||
-->1 / (2 *2) | -->1 / (2 *2) | ||
− | ans | + | ans = |
+ | |||
0.2500000000000000000000 | 0.2500000000000000000000 | ||
+ | |||
-->2*3+4/2 | -->2*3+4/2 | ||
− | ans | + | ans = |
+ | |||
8. | 8. | ||
+ | |||
-->1 -2 ^ 3/4 | -->1 -2 ^ 3/4 | ||
− | ans | + | ans = |
+ | |||
- 1. | - 1. | ||
+ | |||
-->1 -2^3 /4 | -->1 -2^3 /4 | ||
− | ans | + | ans = |
+ | |||
- 1. | - 1. | ||
+ | |||
-->1 -(2^3) /4 | -->1 -(2^3) /4 | ||
− | ans | + | ans = |
+ | |||
- 1. | - 1. | ||
+ | |||
-->((1 ) -((2^3) /4)) | -->((1 ) -((2^3) /4)) | ||
− | ans | + | ans = |
+ | |||
- 1. | - 1. | ||
+ | |||
-->12 ^ 30 | -->12 ^ 30 | ||
− | ans | + | ans = |
+ | |||
2.373763137997698063D+32 | 2.373763137997698063D+32 | ||
+ | |||
-->1/0 | -->1/0 | ||
!--error 27 | !--error 27 | ||
Division by zero... | Division by zero... | ||
+ | |||
+ | |||
+ | |||
-->12 ^ 300 | -->12 ^ 300 | ||
− | ans | + | ans = |
+ | |||
Inf | Inf | ||
+ | |||
-->12^10 | -->12^10 | ||
− | ans | + | ans = |
+ | |||
61917364224. | 61917364224. | ||
+ | |||
-->12^11 | -->12^11 | ||
− | ans | + | ans = |
+ | |||
743008370688. | 743008370688. | ||
+ | |||
-->12^12 | -->12^12 | ||
− | ans | + | ans = |
+ | |||
8916100448256. | 8916100448256. | ||
+ | |||
-->12^22 | -->12^22 | ||
− | ans | + | ans = |
+ | |||
5.520614389124364176D+23 | 5.520614389124364176D+23 | ||
+ | |||
-->9.9D90 | -->9.9D90 | ||
− | ans | + | ans = |
+ | |||
9.899999999999999793D+90 | 9.899999999999999793D+90 | ||
+ | |||
-->9.9E90 | -->9.9E90 | ||
− | ans | + | ans = |
+ | |||
9.899999999999999793D+90 | 9.899999999999999793D+90 | ||
+ | |||
-->12^100 | -->12^100 | ||
− | ans | + | ans = |
+ | |||
8.281797452201454916+107 | 8.281797452201454916+107 | ||
+ | |||
-->12^102 | -->12^102 | ||
− | ans | + | ans = |
+ | |||
1.192578833117009466+110 | 1.192578833117009466+110 | ||
+ | |||
-->12^104 | -->12^104 | ||
− | ans | + | ans = |
+ | |||
1.717313519688493711+112 | 1.717313519688493711+112 | ||
+ | |||
-->Num = 10E100 | -->Num = 10E100 | ||
− | Num | + | Num = |
+ | |||
9.999999999999999770+100 | 9.999999999999999770+100 | ||
+ | |||
-->Num = 10E100*2 | -->Num = 10E100*2 | ||
− | Num | + | Num = |
+ | |||
1.999999999999999954+101 | 1.999999999999999954+101 | ||
+ | |||
-->Num = Num *10 | -->Num = Num *10 | ||
− | Num | + | Num = |
+ | |||
1.999999999999999954+102 | 1.999999999999999954+102 | ||
+ | |||
+ | |||
-->Num = 10E200*2 | -->Num = 10E200*2 | ||
− | Num | + | Num = |
+ | |||
2.000000000000000075+201 | 2.000000000000000075+201 | ||
+ | |||
-->Num = 10E300*2 | -->Num = 10E300*2 | ||
− | Num | + | Num = |
+ | |||
2.000000000000000105+301 | 2.000000000000000105+301 | ||
+ | |||
-->Num = 10E400*2 | -->Num = 10E400*2 | ||
− | Num | + | Num = |
+ | |||
Inf | Inf | ||
+ | |||
Environment saved. | Environment saved. |
Edição das 17h28min de 13 de março de 2010
___________________________________________ scilab-5.1.1 Consortium Scilab (DIGITEO) Copyright (c) 1989-2009 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________
-->5761000000
ans =
5.761D+09
-->5761000000;
-->5.7.61
!--error 276
Missing operator, comma, or semicolon.
-->area=57800000
area =
57800000.
-->populacao=5761000000;
-->who
Your variables are:
populacao area ans home compatibility_functilib umfpacklib spreadsheetlib scilab2fortranlib maple2scilablib matiolib m2scilib texmacslib soundlib scipadinternalslib scipadlib tclscilib metanetgraph_toolslib metaneteditorlib scicos_pal %scicos_menu %scicos_short %scicos_help %scicos_display_mode modelica_libs scicos_pal_libs %scicos_lhb_list %CmenuTypeOneVector %scicos_gif %scicos_contrib scicos_menuslib scicos_utilslib scicos_autolib
differential_equationlib sparselib interpolationlib %z
%s polynomialslib optimizationlib cacsdlib signal_processinglib statisticslib linear_algebralib graphic_exportlib graphicslib parameterslib simulated_annealinglib genetic_algorithmslib stringlib special_functionslib overloadinglib guilib jvmlib integerlib WSCI dynamic_linklib timelib functionslib elementary_functionlib data_structureslib iolib fileiolib demo_toolslib helptoolslib corelib PWD %F %T %nan %inf COMPILER SCI SCIHOME TMPDIR MSDOS %gui %pvm %tk %fftw $ %t %f %eps %io %i %e %pi using 33329 elements out of 5000000. and 87 variables out of 9231.
Your global variables are:
%modalWarning demolist %helps %helps_modules %driverName %exportFileName LANGUAGE %toolboxes %toolboxes_dir
using 3010 elements out of 10999. and 9 variables out of 767.
-->help who
-->who_user
User variables are:
help populacao area home
Using 616 elements ouf of 4965265
-->populacao
populacao =
5.761D+09
-->densidade = populacao/area
densidade =
99.67128
-->area
area =
57800000.
-->area=57800000 *1.6^2
area =
1.480D+08
-->help format
-->format( 'v',20)
-->area=57800000 *1.6^2
area =
147968000.00000003
-->format( 'v',25)
-->area=57800000 *1.6^2
area =
147968000.00000002980232
-->densidade = populacao/area
densidade =
38.9340938581314830458
-->areapessoal=1 / densidade
areapessoal =
0.0256844297864954017319
-->lado = sqrt( areapessoal )
lado =
0.1602636258996263940446
-->lado = areapessoal ^ 1/2
lado =
0.0128422148932477008659
-->lado = areapessoal ^ (1/2)
lado =
0.1602636258996263940446
-->lado = areapessoal ^ (1/2) // em metros
lado =
0.1602636258996263940446
-->lado = areapessoal ^ (1/2)*1000 // em metros
lado =
160.26362589962639049190
-->populacao
populacao =
5761000000.
-->area
area =
147968000.00000002980232
-->area=57800000 *1.6^2
area =
147968000.00000002980232
-->area=57800000 *1.609344^2
area =
149701312.77742081880569
-->densidade = populacao/area
densidade =
38.483296459567995384532
-->areapessoal=1 / densidade
areapessoal =
0.0259852999092901985889
-->lado = areapessoal ^ (1/2)*1000 // em metros
lado =
161.19956547488024511949
-->1 / 2 *2
ans =
1.
-->1 / (2 *2)
ans =
0.2500000000000000000000
-->2*3+4/2
ans =
8.
-->1 -2 ^ 3/4
ans =
- 1.
-->1 -2^3 /4
ans =
- 1.
-->1 -(2^3) /4
ans =
- 1.
-->((1 ) -((2^3) /4))
ans =
- 1.
-->12 ^ 30
ans =
2.373763137997698063D+32
-->1/0
!--error 27
Division by zero...
-->12 ^ 300
ans =
Inf
-->12^10
ans =
61917364224.
-->12^11
ans =
743008370688.
-->12^12
ans =
8916100448256.
-->12^22
ans =
5.520614389124364176D+23
-->9.9D90
ans =
9.899999999999999793D+90
-->9.9E90
ans =
9.899999999999999793D+90
-->12^100
ans =
8.281797452201454916+107
-->12^102
ans =
1.192578833117009466+110
-->12^104
ans =
1.717313519688493711+112
-->Num = 10E100
Num =
9.999999999999999770+100
-->Num = 10E100*2
Num =
1.999999999999999954+101
-->Num = Num *10
Num =
1.999999999999999954+102
-->Num = 10E200*2
Num =
2.000000000000000075+201
-->Num = 10E300*2
Num =
2.000000000000000105+301
-->Num = 10E400*2
Num =
Inf
Environment saved.