Maxima官方教程

合集下载

Maxima快速参考手册

Maxima快速参考手册

3.1.4 对角矩阵 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1.5 单一非零元素矩阵 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
∗Maxima快速参考手册 by Huan Ma is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
†Copyright ⃝c 2010–2011 Huan Ma. 欢迎反馈:yusufma77@
3.2 矩阵运算 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.2.1 加减乘除 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.2.2 幂运算 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.2.3 矩阵乘法 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.3 行(列)操作 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Байду номын сангаас . 19

rim包的使用说明:与Maxima计算机代数系统的接口说明书

rim包的使用说明:与Maxima计算机代数系统的接口说明书

Package‘rim’August24,2023Type PackageTitle Interface to'Maxima',Enabling Symbolic ComputationVersion0.6.4Date2023-08-24Description An interface to the powerful and fairly complete computer algebra system'Maxima'.It can be used to start and control'Maxima'from within R by entering'Maxima'commands.Results from'Maxima'can be parsed and evaluated in R.It facilitates outputting results from'Maxima'in'LaTeX'and'MathML'.2D and3D plots can be displayed directly.This package also registers a'knitr'-engine enabling'Maxima'code chunksto be written in'RMarkdown'documents.URL https://rcst.github.io/rim/BugReports https:///rcst/rim/issuesSystemRequirements Maxima(https:///projects/maxima/,tested with versions5.42.0-5.46.0),needs to be on PATHLicense GPL(>=3)Imports methods,Rcpp,R6,knitr,GlobalOptionsLinkingTo RcppRoxygenNote7.2.3Suggests testthat(>=3.0.0),rmarkdownConfig/testthat/edition3Encoding UTF-8NeedsCompilation yesAuthor Eric Stemmler[aut,cre],Kseniia Shumelchyk[aut],Hans W.Borchers[aut]Maintainer Eric Stemmler<***********************>Repository CRANDate/Publication2023-08-2412:00:02UTC1R topics documented:rim-package (2)maxima.engine (5)maxima.options (6)Index8 rim-package rimDescriptionProvides an interface to Maxima,a computer algebra system.Usagemaxima.start(restart=FALSE)maxima.stop(engine=FALSE)maxima.get(command)maxima.load(module)maxima.apropos(keystring)maxima.version()maxima.isInstalled()iprint(x)##S3method for class maximaprint(x,...)maxima.eval(x,code=FALSE,envir=globalenv())Argumentsrestart if FALSE(default),then Maxima is started provided it is not running already.If TRUE starts or restarts Maxima.engine if FALSE(default),quits the(running)maxima instance and closes the connec-tion,otherwise quits and closes the(running)maxima instance used for the knitrengine.command character string containing the Maxima command.module character vector naming the Maxima module(typically a*.mac or*.lispfile)to be loaded.keystring character vector containing a search term.x Either a character vector of length1L or an S3object of class"maxima"...other arguments(ignored).code A logical vector of length1L,whether to attach the original expression(TRUE) or not(FALSE,default)envir A environment object.globalenv()(default),is passed to eval().DetailsNote:You need to install the Maxima software separately in order to make use of this package.Maxima is set up automatically on attachment via library(rim)and automatically started whena command is send(if it isn’t running already)using maxima.get().If environment variableRIM_MAXIMA_PATH is not set,rim will search for the Maxima executable,or use the former ing maxima.start()and maxima.stop(),one can stop and(re-)start the current Maxima session if needed,e.g.to clear Maxima command and output history.To send a single command to Maxima and receive the corresponding output use maxima.get().This function returns a S3object of class"maxima".The output is printed by printing the object and will be printed in a format currently set by maxima.options(format).The output format can be changed by setting it,e.g.maxima.options(format="ascii").Output labels are printed according to option maxima.options(label).Valueinvisibly returns NULL.Character vector of length1of the input command.Depending on whether option"label"is set to TRUE,the corresponding input reference label is printed preceding the input command.The evaluated R-objectFunctions•maxima.start():(re-)starts Maxima.•maxima.stop():Quits Maxima.•maxima.get():Executes a single Maxima command provided by command.If no command ending character(;or$is provided,;is appended.•maxima.load():A wrapper to load a Maxima module named by module•maxima.apropos():A wrapper to the Maxima helper function apropos to lookup existing Maxima functions that match keystring.•maxima.version():Returns the version number of Maxima that is used•maxima.isInstalled():Returns TRUE when an installation of Maxima has been detected, otherwise FALSE•iprint():Prints the input command of an maxima S3-object returned by maxima.get()•print(maxima):Prints the maxima output part of an S3object returned by maxima.get()•maxima.eval():Evaluates the parsed and quoted R-expression which is part of an S3object returned by maxima.get()Author(s)Maintainer:Eric Stemmler<***********************>Authors:•Kseniia Shumelchyk<********************>•Hans W.Borchers<*************************>See AlsoUseful links:•https://rcst.github.io/rim/•Report bugs at https:///rcst/rim/issues maxima.engine,maxima.optionsExamplesif(maxima.isInstalled())maxima.start(restart=TRUE)if(maxima.isInstalled()){maxima.start(restart=TRUE)maxima.stop()}if(maxima.isInstalled())maxima.get("2+2;")if(maxima.isInstalled())maxima.load("abs_integrate")if(maxima.isInstalled())maxima.apropos("integrate")maxima.version()maxima.isInstalled()if(maxima.isInstalled()){a<-maxima.get("2+2;")iprint(a)}if(maxima.isInstalled()){a<-maxima.get("2+2;")print(a)}if(maxima.isInstalled()){a<-maxima.get("2+2;")maxima.eval(a)#samemaxima.eval("2+2;")#evaluate with data.framedf<-data.frame(x=seq(0,1,by=0.1))maxima.eval("integrate(1/(1+x^4),x);",code=TRUE,envir=df) maxima.stop()}maxima.engine5 maxima.engine knitr maxima engineDescriptionFunctions to process Maxima code chunks by knitr.Usagemaxima.engine(options)maxima.inline(command)Argumentsoptions named list of knitr options.Supported options are echo,eval,includeand output.var.To change the output format of the Maxima engine set the op-tion maxima.options(engine.format)to either"linear"(default),"ascii","latex"or"mathml".command character string containing the Maxima command to be executed.DetailsUpon attachment,i.e.library(rim)function maxima.engine is registered as a knitr engine.Thus,maxima.engine()is called by knit()to evaluate Maxima code chunks.When called uponthefirst code chunk of a document it starts Maxima in a separate process in server mode.Thismeans that a single Maxima session is used for all Maxima code chunks of an RMarkdown docu-ment.Inputs and outputs can thus be used across chunks(e.g.by using Maxima reference labels).maxima.options(engine.format=...,bel=...)configures the output format andwhether or not output reference labels should be printed.The purpose of maxima.inline is to insert Maxima results as inline text,i.e.on the same lineof the preceding text,if it is actually written on the same line of the RMarkdownfile.It uses thesame running Maxima process as maxima.engine.The output format for inline results can beconfigured separately from the settings of maxima.engine,i.e.maxima.options(inline.format=...,bel=...).ValueThis functions prints the resulting output from maxima together with it’s codecharacter string containing the maxima result printed according options set by maxima.options(inline.format =...,bel=...).Functions•maxima.inline():This function can be used to insert maxima outputs as inline.Examplesif(maxima.isInstalled()){maxima.inline("2+2;")maxima.stop(engine=TRUE)}maxima.options maxima.optionsDescriptionFunction for globally setting and retrieving options.Usagemaxima.options(...,RESET=FALSE,READ.ONLY=NULL,LOCAL=FALSE,ADD=FALSE)Arguments...options to be accessed by using name=value.Options can be added by setting ADD=TRUE,but only those mentioned below will be used my rim.RESET logical of length1,whether to reset all options to default values.READ.ONLY logical of length1,can be used to output all options that are read-only.LOCAL logical of length1,to output all options that are defined locally.ADD logical of length1,whether to add the specified option in...(TRUE),default is FALSE.Detailsformat:character vector of length1setting the output format for maxima.get().Can be one of "linear","ascii","latex"or"mathml".engine.format:same as option format,but for outputs in RMarkdown documents.inline.format:character string setting the output format for maxima.inline(),for knitting outputs inline into RMarkdown documents.Can be one of"linear","latex"or"mathml", but not"ascii".label:logical of length1,whether reference labels should be printed for returned S3objects from maxima.get()(TRUE,default),or not(FALSE).This also applies to printing of input commands using iprint().bel:same as label,but for outputs in RMarkdown documents.bel:same as label,but for inline outputs in RMarkdown documents.Examplesmaxima.options(format="latex")maxima.options(label=FALSE)maxima.options(label=TRUE,format="ascii") #reset to defaultmaxima.options(label=TRUE,format="linear")Indexiprint,6iprint(rim-package),2maxima.apropos(rim-package),2maxima.engine,4,5maxima.eval(rim-package),2maxima.get,3,6maxima.get(rim-package),2maxima.inline(maxima.engine),5 maxima.isInstalled(rim-package),2 maxima.load(rim-package),2maxima.options,3,4,6maxima.start,3maxima.start(rim-package),2maxima.stop,3maxima.stop(rim-package),2maxima.version(rim-package),2print.maxima(rim-package),2rim(rim-package),2rim-package,28。

【word版本】AIM2000简明使用教程

【word版本】AIM2000简明使用教程

AIM2000 ver2.0简明使用教程文/Sobereva Lastupdate: 2010-MAR-13本文主要介绍AIM2000的基本使用,关于AIM理论就不多谈了。

相对于其它AIM软件,AIM2000的优点是界面友好,简单易用,缺点是原子盆积分速度偏慢(AIMALL快得多)。

建议用ver 2.0,相对于ver 1.0作了一些改进,因此更好用,比如界面、默认设置等等,尤其是新加入envelope图的支持。

官方网站上有demo版(http://www.aim2000.de),用起来和正式版在功能上没区别,但是最多只能载入8个核、14个轨道、128个高斯函数的体系,没太大实用价值。

安装后在aim2000hlp目录下有一个手册aim2000.chm,介绍每一个选项的功能;有一个教程tutor.chm,以C4H4为例图文并茂地介绍做各种图;在AIM2000目录下还有个aim2000V2UsersGuide.pdf ,罗列了AIM2000具备的功能,并对程序中涉及的每个函数进行了简略介绍。

下文示例的波函数是自带的C4h4.wfn。

1. 预备知识1.1 窗口主界面左上角是控制窗口。

可以选择感兴趣的原子,被选择的原子在3D窗口中会显示以这个原子为中心的坐标轴,原子盆积分也将对这个原子积分;可以选择原子间面用作原子间面积分;可以选择函数,默认是电子密度,如果想对别的函数进行分析则选择相应函数,此教程的示例都是对电子密度进行讨论。

如果之前已经对某些函数做了一些图,选择相应函后,在Plots for this density function里面就可以选择对这个函数已做过的图,同时显示在2D窗口中。

主界面右上方是记录窗口。

Record菜单中选其中一项,就会在这里显示已计算的项目的细节信息,然后可在file-print preview里面看到这些内容的打印预览。

主界面下方是2D窗口,通过Plot菜单的功能做的图,即分子图、等值线/梯度线图、Relief图,都显示在这个区域。

马克西马多 工具 型号:工具手册说明书

马克西马多 工具 型号:工具手册说明书

Medium Pressureto 22,500 psi (1,550 bar)High Pressureto 65,000 psi (4,500 bar)Ultra High Pressureto 152,000 psi (10,500 bar)Valve ActuatorsCustomized SolutionsBall Valvesto 21,000 psi (1,500 bar)Adapters and CouplingsAccessoriesToolsTechnicalInformation1Tools IndexPage:Coning and Threading Tools 2Reseating and Deburr Tools3MAXIMATORGmbH,LangeStraße6,99734Nordhausen,Telefon+49(0)36319533–0,Telefax+49(0)36319533–5010,www.maximator.de,*****************All technical and dimensional information subject to change. All general Terms and Conditions of sale, including limitations of our liability, apply to all products and services sold.Tools feature:• Manual Coning and Threading Coning tools are designed to threadup to 9/16” OD tubing.• One size Coning and Threading tool with interchangeable bushingsand thread dies eliminates multiple tool inventories.• Internal needle bearings and high strength materials offers ease ofoperation and extended tool life.• Coning blades are designed to cut both the angle and straight areasto insure good concentricity between the sealing surfaces.• Precision Reseating Tools to repair damaged female high pressureconnections without full disassembly of components.MAXIMATOR offers manual Coning and Threading tools that are designed to prepare accurate tubing ends to accept the medium, high and ultra high pressure connections.MAXIMATOR offers a complete line of manual tools for the proper preparation of medium, high and ultra high pressure connections up to 9/16” OD tubing. For complete coning and threading instruc-tions see MAXIMATOR’s website at www.maximator.de.Note: When selecting multiple items, the pressure rating would be that of the lowest rated component.3999.1830 | 04/2017Medium Pressureto 22,500 psi (1,550 bar)High Pressureto 65,000 psi (4,500 bar)Ultra High Pressureto 152,000 psi (10,500 bar)Valve ActuatorsCustomizedSolutionsBall Valvesto 21,000 psi (1,500 bar)Adapters and CouplingsAccessoriesToolsTechnical InformationAll technical and dimensional information subject to change. All general Terms and Conditions of sale, including limitations of our liability, apply to all products and services sold.3999.1830 | 04/2017Maximator offers tools for coning and threading tubing up to 9/16” O.D. These are precise tools that allow manual coning and threading of medium, high and ultra high pressure tubing. Please refer to the Maximator website, www.maximator.de and click on the VFT button to find detailed instructions for the coning and threading process.The coning tool comes complete with blades, collet and tools. The blades and tool feed nut allow the user to control the cutting feed rate and face the end of the tube when complete. The blades and collet can be changed for other sizes, while using the same base tool.Coning ToolsThe threading tool comes complete with the threading dieand bushing. The thread is a left hand type. The thread die and bushing can be changed for other sizes, while using the same base tool.Threading ToolsTubing Size Tubing Pressure Connection Type Coning Tool CompleteReplacement Part InformationO.D. x I.D. psi (bar) @ R.T. Catalog Number Collet Coning Blades HSS Coning Blades in. (mm) Part Number Part Number Part Number 1/4 x .109 (6.35 x 2.77) 22,500 (1,550) 4M CT4M 3781.1009 3781.1014 3781.1810 3/8 x .203 (9.53 x 5.17) 22,500 (1,550) 6M CT6M 3781.1010 3781.1013 3781.1811 9/16 x .312 (14.29 x 7.93) 22,500 (1,550) 9M CT9M 3781.1011 3781.1012 3781.1812 9/16 x .359 (14.29 x 9.13)15,200 (1,050)9M CT9M.359 3781.1011 3781.1179 3781.1813 1/4 x .083 (6.35 x 2.11) 65,000 (4,500) 4H / 4U CT4H 3781.1009 3781.0843 3781.1814 3/8 x .125 (9.53 x 3.17) 65,000 (4,500) 6H / 6U CT6H 3781.1010 3781.1017 3781.1808 9/16 x .188 (14.29 x 4.77) 65,000 (4,500) 9H / 9U CT9H 3781.1011 3781.1016 3781.1809 5/16 x .062 (7.94 x 1.58)152,000 (10,500)5UCT5U3781.08463781.08433781.1814Tubing Size Tubing Pressure Connection Type Left HandThreading Tool Replacement Part Information O.D. x I.D. psi (bar) @ R.T. Thread Size CompleteDie Bushing in. (mm) (UNF class 2) Catalog Number Part Number Part Number 1/4 x .109 (6.35 x 2.77) 22,500 (1,550) 4M 1/4-28-LH TT4 3781.1061 3781.1055 3/8 x .203 (9.53 x 5.17) 22,500 (1,550) 6M 3/8-24-LH TT6 3781.1059 3781.1053 9/16 x .312 (14.29 x 7.93) 22,500 (1,550) 9M 9/16-18-LH TT9 3781.1060 3781.1054 9/16 x .359 (14.29 x 9.13)15,200 (1,050)9M 9/16-18-LH TT9 3781.1060 3781.1054 1/4 x .083 (6.35 x 2.11) 65,000 (4,500) 4H / 4U 1/4-28-LH TT4 3781.1061 3781.1055 3/8 x .125 (9.53 x 3.17) 65,000 (4,500) 6H / 6U 3/8-24-LH TT6 3781.1059 3781.1053 9/16 x .188 (14.29 x 4.77) 65,000 (4,500) 9H / 6U 9/16-18-LH TT9 3781.1060 3781.1054 5/16 x .062 (7.94 x 1.58)152,000 (10,500)5U5/16-24-LHTT53781.10583781.1052Medium Pressureto 22,500 psi (1,550 bar)High Pressureto 65,000 psi (4,500 bar)Ultra High Pressureto 152,000 psi (10,500 bar)Valve ActuatorsCustomizedSolutionsBall Valvesto 21,000 psi (1,500 bar)Adapters and CouplingsAccessoriesToolsTechnical Information2 | 33999.1830 | 04/2017All technical and dimensional information subject to change. All general Terms and Conditions of sale, including limitations of our liability, apply to all products and services sold.The reseating tool is designed to rework an existing damaged coned and threaded connection without full disassembly of the component. The reseating tool will resurface the sealing surfaces of the medium, high, and ultra high pressure connections up to 9/16” tubing.Reseating ToolsThe deburring tool is designed to remove the metal burr onthe inside diameter of the tubing after the cutting process. The reseating tool will work on all medium, high, and ultra high pressure connections up to 9/16” tubing.Deburring ToolsTubing Size Tubing Pressure Connection Type Reseating ToolReplacement Part Information O.D. x I.D. psi (bar) @ R.T. CompleteCutter Bushing Gland in. (mm) Catalog Number Part Number Part Number Part Number 1/4 x .109 (6.35 x 2.77) 22,500 (1,550) 4M RT4M 3781.0647 n/a 3781.0649 3/8 x .203 (9.53 x 5.17) 22,500 (1,550) 6M RT6M 3781.0650 n/a 3781.06519/16 x .312 (14.29 x 7.93) 22,500 (1,550) 9M RT9M 3781.0656 n/a 3781.0655 9/16 x .359 (14.29 x 9.13) 15,200 (1,050) 9M RT9M 3781.0656 n/a 3781.0655 3/4 x .438 (19.05 x 11.13)22,500 (1,550)12M RT12M 3781.3557 n/a 3781.3558 1/4 x .083 (6.35 x 2.11) 65,000 (4,500) 4H / 4U RT4H 3781.0647 1700.0719 3781.06483/8 x .125 (9.53 x 3.17) 65,000 (4,500) 6H / 6U RT6H 3781.0645 1700.0718 3781.0646 9/16 x .188 (14.29 x 4.77) 65,000 (4,500) 9H / 9U RT9H 3781.0532 1700.0613 3781.0533 5/16 x .062 (7.94 x 1.58)152,000 (10,500)5URT5U3781.0532n/a3781.0652Tubing Size Tubing Pressure Connection Type Deburring Tool CompleteReplacement PartO.D. x I.D. psi (bar) @ R.T. Catalog Number Informationin. (mm) Bushing Part Number 1/4 x .109 (6.35 x 2.77) 22,500 (1,550) 4M DT4 3781.1381 3/8 x .203 (9.53 x 5.17) 22,500 (1,550) 6M DT4 3781.1381 9/16 x .312 (14.29 x 7.93) 22,500 (1,550) 9M DT4 3781.1381 9/16 x .359 (14.29 x 9.13)15,200 (1,050)9M DT5 3781.1380 1/4 x .083 (6.35 x 2.11) 65,000 (4,500) 4H / 4U DT4 3781.1381 3/8 x .125 (9.53 x 3.17) 65,000 (4,500) 6H / 6U DT4 3781.1381 9/16 x .188 (14.29 x 4.77) 65,000 (4,500) 9H / 9U DT4 3781.1381 5/16 x .062 (7.94 x 1.58)152,000 (10,500)5UDT43781.1381。

MAXQDA 2022 入门指南 (简体中文)说明书

MAXQDA 2022 入门指南 (简体中文)说明书

入门指南Free Guide简体中文 Chinese SimplifiedMAXQDA 2022 入门指南简体中文技术支持与销售:VERBI软件. 德国(柏林)社会研究咨询有限责任公司./china版权所有·侵权必究MAXQDA is a registered trademark of VERBI Software. Consult. Sozialforschung. GmbH,Berlin/Germany; Mac is a registered trademark of Apple Computer, Inc. in the United States and/or other countries; Microsoft Windows, Word, Excel, and PowerPoint are registered trademarks of Microsoft Corporation in the United States and/or other countries; SPSS is a registered trademark of IBM Corporation in the United States and/or other countries; Stata is a registered trademark of Stata Corp LLC. in the United States and/or other countries.All other trademarks or registered trademarks are the property of their respective owners, and may be registered in the United States and/or other jurisdictions.© VERBI软件. 德国(柏林)社会研究咨询有限责任公司. 2022目录 5目录目录 (5)引言 (7)MAXQDA概述 (8)项目启动 (8)用户界面 (9)有关数据存储和保存的几条说明 (11)重要概念 (12)数据输入和探索 (13)数据输入 (13)数据探索 (14)数据搜索 (17)颜色编码和备忘录 (18)数据编码 (20)数据片段编码 (20)数据分析 (23)文件激活 (23)检索使用相同代码编码的文件片段 (24)可视化的使用 (25)6混合方法分析的实施 (26)定义文件变量 (26)变量值的输入 (27)将代码频率转化为变量 (28)文件变量在分析中的使用 (29)推荐文献 (30)结束语 (31)引言7引言欢迎使用MAXQDA入门指南!鉴于当下几乎无人喜欢阅读冗长的介绍性文本或使用手册,我们努力为您提供一份尽可能精短的指南。

Chimera-开始教程 - Menu Version

Chimera-开始教程 - Menu Version

ChimeraUCSF Chimera是一个可高度延伸的程序,用于分子结构和相关数据的交互式可视化和分析。

主要包括:密度图,超分子组合,顺序排列,对接结果,轨迹和构象ensemble。

也可以生成高质量图像和动画。

Chimera包括完整的程序说明书和几个教程。

学术,政府和非营利机构和个人使用者可以免费下载。

Chimera由Resource for Biocomputing, Visualization, and Informatics发展,由National Center for Research Resources资助(grant P41-RR001081)教程开始教程 - Menu VersionChimera的很多工作都可以用多种方法完成。

例如:颜色和显示模式(display style)可以用动作菜单(actions)或者输入命令行(commands)。

一般来说, 命令行更详细,功能更强大,而菜单操作则不需要命令行知识和它们的语法规则就可以易于掌握软件特征。

本教程中,在开始教程-命令行 Version中,采用命令行执行的很多相同任务在此使用菜单代替。

为了继续进行下去,请先下载本教程需要的PDB文件到你电脑中的方便位置。

•1zik.pdb - leucine zipper•1d86.pdb - DNA and 纺锤菌素菜单, Part 1 –操作,选择和链Windows/Mac系统, 点击chimera图标; UNIX系统, 从系统提示符开启Chimera:unix: chimera然后,闪现一个欢迎界面,几秒后被Chimera主窗口取代。

如果你喜欢,通过拖拽窗口右下角来改变Chimera的大小。

现在打开一个结构。

从菜单中选择File... Open,用产生的file browser 找出并打开以前下载的(previously downloaded)文件1zik.pdb (文件类型设为all (guess type)或者PDB). 此结构是一个由两个肽链形成的Leucine zipper。

maxima入门

maxima入门

六、 返回值与附带作用
有的时候我们并不问题特别关心返回值,而更关注于语句的附带作用。比如 kill(all) 的返回值 done 对于我们来说并没有什么意义。我们要的是它的附带作用――清除自定义的变量或函数。因此 我们在语句的末尾加 $ 以避免返回结果。所有的语句都有返回值,但并非所有的语句都有附带作用, 比如 sqrt(2) axim 入门 (%o3)
庚寅年二月廿六
八、
在特定环境下求值
bd + ad + bc + ac
4 等式
一般情况下,冒号起赋值作用,等号起比较作用。但是在环境函数内部,等号起了代换作用 (%i1) x+y,x=a+y; (%o1) 2y + a (%i2) (%o2) %,y=2; a+4 (%i3) (%o3) x+y,x=a+y,y=2; y+a+2 (%i4) (%o4) x+y,[x=a+y,y=2]; y+a+2 可以看出,代换是并行的。 下面的例子展示了如何验证方程解的正确性 (%i5) eqns:[-2*x-3*y=3,-3*x+2*y=-4]$ (%i6) solns:solve(eqns); (%o6) ]] [[ 6 17 y = − ,x = 13 13 (%i7) (%o7) eqns,solns; [3 = 3, −4 = −4]
下面的例子展示了对 -1 的四次方根进行直角化和分式简化 (%i1) (%o1) solve(a^4+1); [ ] 1 1 1 1 a = (−1) 4 i, a = − (−1) 4 , a = − (−1) 4 i, a = (−1) 4 %,rectform,ratsimp;

maxima画图0.1

maxima画图0.1

Maxima画图笔记wangyunqing1平面图1.1显函数命令:plot2d();例如:y=x3输入:plot2d(xˆ3,[x,-30,30]);用plot2d或draw2d用draw命令先输入load(draw)$,例如draw2d(explicit(x^3,x,-1,1));1.2隐函数命令:load(implicit_plot)$implicit_plot();例如:蔓叶线implicit_plot(y^2*(2-x)=x^3,[x,0,3],[y,-10,10]); draw2d(implicit(y^2*(2-x)=x^3,x,0,3,y,-10,10));1.3参数方程例如摆线方程:x=θ−sinθ,y=1−cosθplot2d([parametric,t-sin(t),1-cos(t),[t,0,2*%pi],[nticks,2000]])$ draw2d(parametric(t-sin(t),1-cos(t),t,0,2*%pi));1.4极坐标画心形线r=1−cosθdraw2d(nticks=300,polar(1-cos(t),t,0,3*%pi));2立体图用draw3d,其余与平面图形类似。

12.1空间曲线的参数方程螺旋线x=cos t,y=sin t,z=tdraw3d(parametric(cos(t),sin(t),t,t,0,2*%pi));2.2空间曲面的参数方程螺旋曲面的参数方程x=r cosϕ,y=r sinϕ,z=ϕdraw3d(parametric_surface(r*cos(t),r*sin(t),t,r,0,1,t,0,2*%pi));2.3球面坐标方程draw3d(spherical(1,a,0,2*%pi,z,0,%pi));2.4柱面坐标方程柱面坐标变换为x=r cosθ,y=r sinθ,z=z.抛物面x2+y2=zdraw3d(cylindrical(sqrt(z),z,0,5,theta,0,2*%pi));或draw3d(tube(0,0,z,sqrt(z),z,0,5));3其他设置3.1终端输出可以输出png,jpg,eps,pdf,pdfcairo,gif等格式。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

MAXIMAMini manual to study maths functionsMaxima is a computer algebra system that manipulate symbolic and numerical expressions, including differentiation, integration, systems of linear equations, and vectors, matrices, and so on. Maxima produces high precision results by using exact fractions and arbitrarily long floating pointrepresentations, and can plot functions and data in 2D and 3D.Picture n.1 : y =sin(x) Picture n.2 : f(x,y)= 2^(x 2-y 2) The Maxima source code can be compiled on many systems, including Windows, Linux, and MacOS X. The source code for all systems and precompiled binaries for Windows and Linux are available atthe /index.shtml 1You can find Maxima also into the Xplora DVD, a live bootable DVD – Xplora Knoppix, based on the Linux Debian distribution and completely contained on a self booting DVD. This Knoppix version allow you to work in Linux OS without installing it on your PC. The DVD contains software applications focused on science education. As it is open source software it can be given away freely and be copied aswell. (you can read more /shared/data/pdf/xploraknoppix.pdf ) The last version Maxima 5.9.3 was released March 19, 2006. The SourceForge file manager has source and binary files, including a self-contained.Windows installer. Maxima is constantly updating, to fix bugs and improve the code and the documentation. Most discussion and help you can find on the Maxima mailing list. /maximalist.html1 / is the world's largest Open Source software development web site,hosting more than 100,000 projects and over 1,000,000 registered users with a centralized resource for managing projects, issues, communications, and code. has the largest repository of Open Source code and applications available on the Internet, and provides a wide variety of services to projects we host, and to the Open Source community.Running Maxima the prompt like is (%i1) where the "i" represent "input".If you input a simple calculation(%i1) ((2*5)^3 - 100)/3 ;you will get the result as(%o1) 300where the "o" represent "output".When we use a "expand",(%i2) expand((x+y)^2);(%o2) y2 + 2 x y + x2or if you use “factor”(%i4) factor(4!);(%o4) 23 3And(%i1) factor (x^3 - 1);(%o1) (x - 1) (x + x + 1)2NOTE : end each Maxima command with a semicolon ;end the session with the command (%in)quit(); if you don't want a result showed, you can finish your command with $ instead of ;.Variables and parametersA variable can be defined by(%i1) x:1;which will put the value "1" into the variable "x".(%o2) 1This variable is accessible everywhere (even in functions) unless it is redefined in a BLOCK statement. Since the variable is accessable "everywhere", it is advisable to use BLOCK in a functions or else temporary variables inside the function might affect your results.Or you can introduce a parameter “a”;(%i1) a:100;(%o1) 100(%i2) sqrt(a);(%o2) 10Where sqrt (x), is the square root of x. It is represented internally by x^(1/2).ConstantsThere are several constants such as•%e - 2.71828•%inf - infinity•%i - square-root of -1, complex number•%pi - pi (3.14159265)Their value can be obtained usingbfloat(%e);and with the precision set by changing the variablefpprec:150;in the order below:(%i1) fpprec:150;(%o1) 150(%i2) bfloat(%e);(%o2) 2.7182818284590452353602874713526624977572470936999595749669676277240766\ 303535475945713821785251664274274663919320030599218174135966290435729003342952\6b0Maxima knows about complex numbers and numerical constants:(%i1) cos(%pi);(%o1) - 1(%i2) exp(%i*%pi);(%o2) - 1Introduction to Help - Maxima can search the info pages. Use the describe command to show all the commands and variables containing a string, and optionally their documentation. The question mark ? is an abbreviation for describe:(%in) ? function0: ()Special Functions.1: Introduction to Special Functions.2: Definitions for Special Functions.3: Elliptic Functions.4: Introduction to Elliptic Functions and Integrals.5: Definitions for Elliptic Functions.6: Function Definition.7: Introduction to Function Definition.8: Function.9: Definitions for Function Definition.10: Function and Variable Index.11: functions :Definitions for Function Definition.12: remfunction :Definitions for Command Line.13: tr_bound_function_applyp :Definitions for Function Definition.14: tr_function_call_default :Definitions for Function Definition.15: tr_warn_bad_function_calls :Definitions for Function Definition.16: ()Function and variable index.17: mat_function :Definitions for diag.18: ()Function and variable index.19: ()Function and variable index.20: ()Function and variable index.21: ()Function and variable index.22: (solve_)Function and variable index.23: ()Function and variable index.24: ()Function and variable index.25: ()Function and variable index.26: ()Function and variable index.Enter space-separated numbers, `all' or `none': 840.2 Function=============To define a function in Maxima you use the := operator. E.g. f(x) := sin(x);defines a function `f'.An example regarding function and its zeroes:(%i1) f(x):= x^3-4*x^2+3*x;(%o1) f(x) := x - 4 x + 3 x(%i2) f(x)=0;(%o2) x3 - 4 x2 + 3 x = 0(%i3) solve(f(x)=0,x);(%o3) [x = 3, x = 1, x = 0]Maxima calculate differential and integral of functions:(%i4) diff (f(x), x);(%o4) 3 x2 - 8 x + 3(%i5) f1(x):= 3* x^2 - 8* x + 3;(%o5) f1(x) := 3 x2 - 8 x + 3(%i6) integrate(f1(x),x);(%o6) x3 - 4 x2 + 3 xMaxima can solve linear and nonlinear sets of equations:(%i1) eq_1: x+ 3*y = 0$(%i2) eq_2: 3*x + y = 1$(%i3) solve ([eq_1, eq_2]);1 3(%o3) [[y = - -, x = -]]88(%i4) float(%o3);(%o4) [[y = - 0.125, x = 0.375]]Maxima can display a plot of one or more functions of one variable.plot2d ([expr_1, ..., expr_n], x_range, y_range)plot2d ([expr_1, ..., expr_n], x_range)To get the graphics in picture 1 at page 1(%i1) plot2d(sin(x), [x, 0, 2*%pi]);To get a PNG file:plot2d(sin(x), [x, 0, 2*%pi],[gnuplot_preamble,"set terminal png;set out 'sin.png'"])$To get an EPS file:plot2d(sin(x), [x, 0, 2*%pi],[gnuplot_preamble,"set terminal postscript eps;set out 'sin.eps'"])$With Gimp, you can convert then the png to jpg and other bitmat formats, but there are lots of programs to make file conversions.To get a 3D graph: a torus(%i1) expr_1: cos(y)*(10.0+6*cos(x));(%i2) expr_2: sin(y)*(10.0+6*cos(x));(%i3) expr_3: -6*sin(x);(%i4)plot3d ([expr_1, expr_2, expr_3],[x, 0, 2*%pi],[y, 0,2*%pi],['grid, 40, 40]);To get a PNG file that allowed you to insert it in a document like a image the command line is : (%i5) plot3d ([expr_1, expr_2, expr_3], [x, 0, 2*%pi], [y, 0, 2*%pi], ['grid, 40, 40],[gnuplot_preamble,"set terminal png; set out 'torus.png'"])$Maxima can generate several plot_formats: OPENMATH, GEOMVIEW, GNUPLOT and IZIC. "OPENMATH" is the default plot_format and "GNUPLOT" ( a most advanced, plotting package) is very in general.(%i4) set_plot_option([plot_format,openmath]);(%o4) [[x, - 1.75555970201398E+305, 1.75555970201398E+305],[y, - 1.75555970201398E+305, 1.75555970201398E+305], [t, - 3, 3],[grid, 30, 30], [view_direction, 1, 1, 1], [colour_z, false],[transform_xy, false], [run_viewer, true], [plot_format, openmath],[gnuplot_term, default], [gnuplot_out_file, false], [nticks, 10],[adapt_depth, 10], [gnuplot_pm3d, true], [gnuplot_preamble, ],[gnuplot_curve_titles, [default]], [gnuplot_curve_styles,[with lines 3, with lines 1, with lines 2, with lines 5, with lines 4,with lines 6, with lines 7]], [gnuplot_default_term_command, ],[gnuplot_dumb_term_command, set term dumb 79 22], [gnuplot_ps_term_command, se\t size 1.5, 1.5;set term postscript eps enhanced color solid 24],[logx, false], [logy, false]]and after that, every plot command will be handled by Openmath using the Xmaxima graphic console, by default:(%i5) plot2d (sin(x), [x, 0, 2*%pi]);In that way you get a embedded graphic function sin(x).NOTE: at page n. 6Option: gnuplot_preambleInserts gnuplot commands before the plot is drawn. Multiple commands should be separated with a semi-colon. The example shown produces a PNG file. The default value for gnuplot_preamble is the empty string "".Option: gridSets the number of grid points to use in the x- and y-directions for three-dimensional plotting. Composition of Functions:(%i1) f(x):=-x^2$(%i2) g(y):= %e^y$(%i3) h(x):=g(f(x))$(%i4) plot2d(h(x), [x, -3, 3], [x, -5, 5]);Maxima trigonometric functions definedThe trigonometric functions and simplification routines are in Maxima, below yo can read the list of some of them:acos (x) – Arc cosineacot (x) - Arc Cotangentacoth (x) - Hyperbolic Arc Cotangent.acsc (x) - Arc Cosecant.asec (x) - Arc Secantasin (x) - Arc Sine.atan (x) - Arc Tangent.cos (x) - Cosine.cot (x) - Cotangent.csc (x) - Cosecant.sec (x) - Secant.sin (x) – Sinetan (x) - Tangent.Introducing the command lineplot2d ([sin(x),cos(x)], [x, 0,2*%pi],[y, -1,1]); you get both the graphics.Read data from fileThere are several mechanisms to store data in files and retrieve it.•save writes data to a file as Lisp expressions. load retrieves the data written by save. Execute ?save and ? load for more information.•stringout writes data to a file as Maxima expressions. load retrieves the data written by stringout. Execute ? stringout for more information.•writefile creates a console log (a so-called "dribble" file) which records the interactions between the user and Maxima. This file cannot be reloaded into Maxima. Execute ? writefile for moreinformation.The study function 122−+=x x y using MAXIMA(%i1) f(x):= (x+2)/(x^2 - 1)$(%i2) plot2d (f(x), [x, -10,10],[y, -10,10],[gnuplot_preamble,"set xzeroaxis; set yzeroaxis"])$MAXIMA computes the function limit(%in) limit (expr , x , val , dir );expr as the real variable x approaches the value val from the direction dir .dir may have the value plus for a limit from above, minus for a limit from below, or may be omitted (implying a two-sided limit is to be computed).Maxima limit uses the following special symbols: inf (positive infinity) and minf (negative infinity). On output it may also use und (undefined), ind (indefinite but bounded) and infinity (complex infinity).(%i3) limit(f(x),x,-1,plus); (%o3) minf(%i4) limit(f(x),x,-1,minus); (%o4) inf(%i5) limit(f(x),x,1,plus); (%o5) inf(%i6) limit(f(x),x,-1,minus); (%o6) inf(%i7) limit(f(x),x,inf); (%o7) 0First Derivative(%i8) diff(f(x),x);1 2 x (x + 2)(%o8) ------ - -----------x2 - 1 (x2 - 1)2 Expression can be simplified by ratsimp:(%i9) Deriv1:ratsimp(diff(f(x),x));x2 + 4 x + 1(%o9) - -------------x4- 2 x2 + 1(%i10) solve (Deriv1=0,x);(%o10) [x = - sqrt(3) - 2, x = sqrt(3) - 2](%i11) float(%o10);(%o11) [x = - 3.732050807568877, x = - 0.26794919243112]We use theFunction: ev (<expr>, <arg_1>, ..., <arg_n>) to calculate the coordinates of the point .Evaluates the expression <expr> in the environment specified by the arguments <arg_1>, ...,<arg_n>. The arguments are (assignments, equations, and functions. `ev' returns the result (another expression) of the evaluation.(%i12) ev(f(- 3.732050807568877),float);(%o12) - 0.13397459621556(%i13) ev(f(- 0.26794919243112),float);(%o13) - 1.866025403784439You can read below the command line to get of the graphics of first derivative: (%i14) plot2d (Deriv1, [x, -5,5],[y, -5,5],[gnuplot_preamble,"set xzeroaxis; set yzeroaxis"])$and in the next page its picture.Second Derivative(%i15) Deriv2:ratsimp(diff(Deriv1,x));2 x3 + 12 x2 + 6 x + 4(%o15) ------------------------x6 - 3 x4 + 3 x2 - 1(%i16) fpprec:2$(%i17) solve (Deriv2=0,x);………………………(%i19) float(%o17);(%o19) [x = - 2.1 (0.9 %i - 0.5) - 1.4 (- 0.9 %i - 0.5) - 2.0, x = - 1.4 (0.9 %i - 0.5) - 2.1 (- 0.9 %i - 0.5) - 2.0, x = - 5.5]You can read below the command line to get of the graphics of second derivative:(%i20) plot2d (Deriv2, [x, -5,5],[y, -5,5],[gnuplot_preamble,"set xzeroaxis; set yzeroaxis"])$and in the next page its picture.wx Maxima release (0.6.5-1)A very interesting related project about Maxima is wxMaxima release (0.6.5-1) (author Andrej Vodopivec et al) a wxWidgets / graphical user interface for the computer algebra system Maxima.Wxmaxima (free download at / ) provides a wxWindows interface for Maxima, including a menu system, browsable help and formated output (see picture below in this page). Features as symbolic manipulation of polynomials, rational functions, matrices, integration and graphics are as easy as point and click.Wxmaxima should be installed in a subdirectory of Maxima installation directory. This way, wxMaxima can find the Maxima binary automatically.Example: - Maxima installation directory C:\Program Files\ maxima-5.9.3- wxMaxima installation directory C:\Program Files\ maxima-5.9.3\wxMaxima.If you install it in a different directory, you will have to configure it with Maxima->Configure.WEB RESOURCESwxMaxima material to download by Johann WeilharterIntroduction to Maxima by Richard Rand (PDF)/docs/intromax/intromax.pdfThe Computer Algebra Program Maxima by Boris Gaertner(Entire tutorial in one file: gaertner-tutorial-revision.zip)Micro introduction into Maxima at Harvard UK /computing/maxima/ Minimal Maxima by Robert Dodier (PDF) /docs/tutorial/en/minimal-maxima.pdf/manuals/math/maxima-5.9.2/index.html Document generated by Joshua David Goldstein on December, 6 2005。

相关文档
最新文档