maxima

Solving trignometric terms with maxima

走远了吗. 提交于 2020-01-24 08:57:05
问题 I try to get all roots of cos(x) with wxMaxima (%i29)solve(cos(x)=0,x); solve: using arc-trig functions to get a solution. Some solutions will be lost. (%o29) [x=%pi/2] The solution gets solved by using arccos. How can i get all solutions for a given domain? e.g. [0; 5*pi] 回答1: Using to_poly_solve you can obtain all solutions: to_poly_solve(cos(x)=0,x); 来源: https://stackoverflow.com/questions/44872011/solving-trignometric-terms-with-maxima

Solving trignometric terms with maxima

本小妞迷上赌 提交于 2020-01-24 08:56:28
问题 I try to get all roots of cos(x) with wxMaxima (%i29)solve(cos(x)=0,x); solve: using arc-trig functions to get a solution. Some solutions will be lost. (%o29) [x=%pi/2] The solution gets solved by using arccos. How can i get all solutions for a given domain? e.g. [0; 5*pi] 回答1: Using to_poly_solve you can obtain all solutions: to_poly_solve(cos(x)=0,x); 来源: https://stackoverflow.com/questions/44872011/solving-trignometric-terms-with-maxima

How to set the origin to O and remove the zero labels in Maxima draw?

元气小坏坏 提交于 2020-01-15 12:46:06
问题 The draw (2d) function in Maxima has several settings to control the axis, but as far as I can tell, none that hides the zero label of the xy-axis and to replace it with either a 0 or a O. Maybe that's possible to use with the option user_preamble? 回答1: You will need to set the xtics and ytics values explicitly, omitting the origin, and use label to label the origin. load(draw)$ draw2d( user_preamble="set zeroaxis linetype 5; set xtics axis; set ytics axis; set border 0;", xtics={-3, -2, -1,

Why is an empty list returned when solving for this linear system in Maxima?

房东的猫 提交于 2019-12-24 19:38:35
问题 I'm trying to solve a simple linear system in Maxima using solve like so: /*Standard form*/ eq1 : x1 + 3*x2 + s1 = 6; eq2 : 3*x1 + 2*x2 + s2 = 6; base1 : solve([eq1,eq2],[s1,s2]); This however returns an empty list and I don't know why. Any ideas? I'm pretty sure the system has a solution, so that shouldn't be the issue. EDIT: I attempted to insert the equations explicitly into solve in place of eq1 and eq2 , and now it works. Now the question is, why do I need to explicitly insert the

Maxima: Simplify matrix components

左心房为你撑大大i 提交于 2019-12-23 15:50:21
问题 in Maxima, how is it possible to simply equations that are components of a matrix? I have a rather big matrix and want to simplify the components of it (e.g. factor out and cancel out). Thanks. 回答1: Most functions (where appropriate) already thread over lists, matrices, equations, etc... For example: (%i1) a : [[cos(x)^2+sin(x)^2,1],[0,sin(x)*cos(x)]]; 2 2 (%o1) [[sin (x) + cos (x), 1], [0, cos(x) sin(x)]] (%i2) trigsimp(a); (%o2) [[1, 1], [0, cos(x) sin(x)]] (%i3) trigreduce(a); cos(2 x) + 1

Maxima: convert matrix to list

大兔子大兔子 提交于 2019-12-22 03:58:45
问题 I convert list to matrix in Maxima in following way: DataL : [ [1,2], [2,4], [3,6], [4,8] ]; DataM: apply('matrix,DataL); How to do it the other way ? How to convert given matrix DataM into list DataL ? 回答1: I know it's late in the game, but for what it's worth, there is a simpler way. my_matrix : matrix ([a, b, c], [d, e, f]); my_list : args (my_matrix); => [[a, b, c], [d, e, f]] 回答2: I'm far from a Maxima expert, but since you asked me to look at this question, here's what I have after a

搭建完美的数学计算环境: iTeXmacs+maxima

纵然是瞬间 提交于 2019-12-14 20:28:52
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 作为一个数学爱好者,经常需要借助于计算机完成许多数学计算任务,并借助软件进行专业的排版。这里计算工具选用 maxima,排版工具选择 iTeXmacs,本文介绍如何让 iTeXmacs 接管 maxima 的输出并进行排版。 一、了解 maxima 与 iTeXmacs 什么是 maxima? maxima 是一个设计用来操作代数表达式的大型程序,你可以使用 maxima 来操作含有常数、变量、函数的表达式。它可以完成求导、积分、求极限、解方程、因式分解、对函数进行级数展开和解微分方程以及绘制函数图象等数学任务。它还有一个内置的程序设计语言,你可以使用它来完成进行一些自定义的高级任务。 什么是 iTeXmacs? iTeXmacs 是一个所见即所得的功能强大的科技文档排版软件,它的目标是提供一个统一的、友好的编辑含有各种内容(文本、图片、数学公式、表格、交互式会话)的结构化文档的工具。它的内核采用了一个高质量的排版算法使得文档具有专业的排版效果,无论是用于打印还是屏幕浏览都是最完美的视觉效果。 二、安装 maxima 与 iTeXmacs 安装 maxima 到 http://sourceforge.net/projects/maxima 下载 maxima 的安装程序,安装之,注意安装路径不要含有中文或者空格

How to create a plot with sliders in maxima?

穿精又带淫゛_ 提交于 2019-12-12 15:14:47
问题 In order to illustrate a Cauchy problem for first order ode with infinite family of solutions, I would plot the parametrized solution and having the possility of control the value the parameter through a slider. To be complete the Cauchy problem is y'=sqrt(|y|), y(0)=0, and the parametric solution is y_c(x):={0, if c=>x; (x-c)^2/4, if x=>c}. So I would get a plotting of y=y_c(x) with a slider to control the value of c. Thank you. 回答1: You can use with_slider_draw in wxMaxima to do this. Y(c,x

How to draw graph of Gauss function?

风流意气都作罢 提交于 2019-12-12 15:08:28
问题 Gauss function has an infinite number of jump discontinuities at x = 1/n, for positive integers. I want to draw diagram of Gauss function. Using Maxima cas I can draw it with simple command : f(x):= 1/x - floor(1/x); plot2d(f(x),[x,0,1]); but the result is not good ( near x=0 it should be like here) Also Maxima claims: plot2d: expression evaluates to non-numeric value somewhere in plotting range. I can define picewise function ( jump discontinuities at x = 1/n, for positive integers ) so I

maxima multiple trigonometric equations

巧了我就是萌 提交于 2019-12-12 04:52:12
问题 I'm trying to solve an equation using maxima 13.04.2 but the answer isn't what I expect. Example: y2=A2*cos(2*pi*f2*t+phase2) we know A2=.4,f2=6.4951,t=1, trying to find **phase2** y2=.4*cos(2*pi*6.4951+phase2) I tried to solve the y2 equation for phase2 in maxima but it got rid of the cos function kill(all); A:A; phase:phase; solve(A*cos(2*pi*f*t+phase)=0,phase); The answer that came back was I thought something like this was suppose to come back y2 = A2×cos(2πf2t + φ2) ⇒ y2/A2 = cos(2πf2t +