資源描述:
《Getting Started with Mathematica.pdf》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、GETTINGSTARTEDWITHMATHEMATICAMartinEricksonMarch7,2001ThepurposeofthismanualistohelpyoubeginusingMathematica,amathematicalex-plorationsysteminwhichyoucanperformcalculations,evaluatefunctions,creategraphics,anddevelopprograms.Themanualcontainssimpleexamplesforyoutotry.Itcoversjustthebas
2、ics,enoughtogetyoustarted.TolearnmoreaboutMathematica,youmaywanttoconsultthesourceslistedinSection7andinthereferencesthatfollow.Contents1.WhatisMathematica?2.HowtouseMathematicaasacalculator3.Howtocomputefunctions4.Howtographfunctions5.Howtodosimpleprogramming6.HowtodevelopaMathematica
3、notebook7.HowtolearnmoreReferences1WhatisMathematica?Mathematica,createdbyStephenWolfram,isasoftwaresysteminwhichyoucaninvestigatemathematics,performcalculations,creategraphics,andwriteprograms.Mathematicacommandsaretypedonagraphicaluserinterfacecontainingmenuoptions(seeFigure1).2Howto
4、useMathematicaasacalculatorYoucanuseMathematicaasapowerfulcalculator.SimplytypetheexpressionyouwishtoevaluateandpressSHIFT+ENTER(orjusttheENTERkeyonthelower-rightcornerofanextendedkeyboard).1Figure1:TheMathematicacommandscreen.Example2.1.Hereweadd2and2toget...4.2+24Note.Thersttimeyoua
5、skMathematicatoperformacalculation,Mathematicastartsupthekernel(itscalculatingengine).Note.Mathematicaassignslinenumberstotheinputandoutput,butwesuppressthenumbersinthismanual.Mathematicacanhandleverylargenumbers.ThefollowingexampleshowsoMathe-matica'sfantasticcalculatingpower.Example
6、2.2.Weevaluate3100.3^(100)515377520732011331036461129765621272702107522001Note.Mathematicacaneasilyworkwithnumbershundredsofdigitslong.Tomultiplytwonumbers,typethenumberswithaspacebetweenthemandenter.2Example2.3.Herewecalculate102459049.10245904960466176Thevaluesofusefulmathematicalco
7、nstantssuchas,e,andiarestoredinMathematica.Toobtainthenumericalvalueofanexpression,usethefunctionN.Example2.4.Wecalculateande.N[Pi]3.14159N[E]2.71828Ifyouwantanumericalresultgiventoahighdegreeofaccuracy,usethecommandN[_,_].Therstargumentofthisfunctionisthenumbertobecalculated;thes