Mudanças entre as edições de "Mmcc:aula 2"
m (Nova página: ___________________________________________ scilab-5.1.1 Consortium Scilab (DIGITEO) Copyright (c) 1989-2009 (IN...) |
m |
||
(4 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
− | ___________________________________________ | + | ___________________________________________ |
scilab-5.1.1 | scilab-5.1.1 | ||
− | |||
Consortium Scilab (DIGITEO) | Consortium Scilab (DIGITEO) | ||
Copyright (c) 1989-2009 (INRIA) | Copyright (c) 1989-2009 (INRIA) | ||
Copyright (c) 1989-2007 (ENPC) | Copyright (c) 1989-2007 (ENPC) | ||
− | ___________________________________________ | + | ___________________________________________ |
− | + | Startup execution: | |
− | |||
− | Startup execution: | ||
loading initial environment | loading initial environment | ||
− | + | ||
-->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 |
− | + | compatibility_functilib umfpacklib spreadsheetlib scilab2fortranlib | |
− | populacao area ans home | + | maple2scilablib matiolib m2scilib texmacslib |
− | compatibility_functilib umfpacklib spreadsheetlib scilab2fortranlib | + | soundlib scipadinternalslib scipadlib tclscilib |
− | maple2scilablib matiolib m2scilib texmacslib | + | metanetgraph_toolslib metaneteditorlib scicos_pal %scicos_menu |
− | soundlib scipadinternalslib scipadlib tclscilib | + | %scicos_short %scicos_help %scicos_display_mode modelica_libs |
− | metanetgraph_toolslib metaneteditorlib scicos_pal %scicos_menu | + | scicos_pal_libs %scicos_lhb_list %CmenuTypeOneVector %scicos_gif |
− | %scicos_short %scicos_help %scicos_display_mode modelica_libs | + | %scicos_contrib scicos_menuslib scicos_utilslib scicos_autolib |
− | scicos_pal_libs %scicos_lhb_list %CmenuTypeOneVector %scicos_gif | + | diferential_equationlib sparselib interpolationlib %z |
− | %scicos_contrib scicos_menuslib scicos_utilslib scicos_autolib | + | %s polynomialslib optimizationlib cacsdlib |
− | + | signal_processinglib statisticslib linear_algebralib graphic_exportlib | |
− | %s polynomialslib optimizationlib cacsdlib | + | graphicslib parameterslib simulated_annealinglib genetic_algorithmslib |
− | signal_processinglib statisticslib linear_algebralib graphic_exportlib | + | stringlib special_functionslib overloadinglib guilib |
− | graphicslib parameterslib simulated_annealinglib genetic_algorithmslib | + | jvmlib integerlib WSCI dynamic_linklib |
− | stringlib special_functionslib overloadinglib guilib | + | timelib functionslib elementary_functionlib data_structureslib |
− | jvmlib integerlib WSCI dynamic_linklib | + | iolib fileiolib demo_toolslib helptoolslib |
− | timelib functionslib elementary_functionlib data_structureslib | + | corelib PWD %F %T |
− | iolib fileiolib demo_toolslib helptoolslib | + | %nan %inf COMPILER SCI |
− | corelib PWD %F %T | + | SCIHOME TMPDIR MSDOS %gui |
− | %nan %inf COMPILER SCI | + | %pvm %tk %fftw $ |
− | SCIHOME TMPDIR MSDOS %gui | + | %t %f %eps %io |
− | %pvm %tk %fftw $ | + | %i %e %pi |
− | %t %f %eps %io | ||
− | %i %e %pi | ||
− | |||
using 33329 elements out of 5000000. | using 33329 elements out of 5000000. | ||
and 87 variables out of 9231. | 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 %exportFileName LANGUAGE %toolboxes |
− | %driverName %exportFileName LANGUAGE %toolboxes | + | %toolboxes_dir |
− | %toolboxes_dir | + | |
− | |||
using 3010 elements out of 10999. | using 3010 elements out of 10999. | ||
and 9 variables out of 767. | 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 | + | |
− | + | ==Ordem das operações== | |
+ | |||
-->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. | + | |
− | + | == O maior número == | |
-->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. | + | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->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^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 = 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 atual tal como às 00h30min de 14 de março de 2010
___________________________________________ scilab-5.1.1 Consortium Scilab (DIGITEO) Copyright (c) 1989-2009 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Startup execution: loading initial environment
-->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 diferential_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
Ordem das operações
-->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.
O maior número
-->12 ^ 30
ans = 2.373763137997698063D+32
-->1/0
!--error 27
Division by zero...
-->12 ^ 300
ans = Inf
-->12^10
ans = 61917364224.
-->9.9D90
ans = 9.899999999999999793D+90
-->9.9E90
ans = 9.899999999999999793D+90
-->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 = 10E300*2
Num = 2.000000000000000105+301
-->Num = 10E400*2
Num = Inf
Environment saved.