maple

how to construct sub-expressions with only two variables and one arithmatic operation from complex Expression Maple/Matlab?

只愿长相守 提交于 2019-12-13 09:14:42
问题 let the Symbolic expression is as below. y = s + (a/b)*log((a+c)/(b*a)); %# it can be any type of expression how can I get all possible sub-expressions with two variables and one operator between them. subExpression1 = b*a; subExpression2 = a/b; I got stuck whlie extracting sub-expressions based on operator. if I read one operator I have to study its LHS and RHS and verify that it operates just on one variable but not a other subexpression. Is there a way to study both LHS and RHS of a

Boolean expression evaluation from user

☆樱花仙子☆ 提交于 2019-12-13 07:46:11
问题 This question was migrated from Mathematics Stack Exchange because it can be answered on Stack Overflow. Migrated 5 years ago . How does one, in Maple, prompt the user to answer a true or false (or yes or no) question that can be evaluated by your program like how a boolean would be in java? The exact question would be "is the equation you want to use x=f(Xo)". This is in an if statement already so if true then continue with the program and if false then prompt the user to input the equation

convert a set to expression Maple/ Change prefix to In-fix expression

一个人想着一个人 提交于 2019-12-12 20:07:23
问题 How to convert the below set to expression Expression := {{a°b}, {a°x°y}} # ° can be any operator required output as result := {a°b, a°x°y} #required output I have tried to convert using convert function like below, asString := convert(Expression, string); with(StringTools): asString :=Remove("{}", asString) result := InertForm:-Parse(asString); but my output is in the order of Pre-fix expression. result := {" ° (a,b), ° ( ° (a,x),y)"} Kind regards 回答1: restart; foo := {{a/b}, {a+x*y}}:

Maple: How to insert a command to force my code to choose random integer values to find my values?

笑着哭i 提交于 2019-12-12 18:43:08
问题 My initial question is to: Use the several variable version of the Newton-Raphson algorithm to find all 4 (real and complex) intersection points of the 2 circles 2 2 (x - 7) + (y - 2) = 100 and 2 2 (x - 11) + (y - 5) = 75 accurate to 25 digits. Plot these two circles in two colors showing their 2 real intersection points. The code I has does a every good job in find the real value points of the intersection of these two circles. However, I am the image of the two circles to determine my

Nested for loops for Maple 15

旧巷老猫 提交于 2019-12-12 03:32:17
问题 I need to run the inner most for loop for some particular coordinate points that are complex number valued. However, I do not know the particular coordinate points. I am suppose to guess and check to get an answer. However that is tediuos. Hence I wanted to come up with nested for loops to do the work for me of checking for different values. When I try to run the code below I get a unterminating loop. Is there an error in my code? for i from -100.0 to 100.0 do for j from -100.0 to 100.0 do

With Maple how can i prompt the user to answer a boolean expression?

别来无恙 提交于 2019-12-12 01:09:30
问题 The exact question would be "is the equation you want to use x=f(Xo)". This is in an if statement already so if true then continue if not then prompt user to enter a different function. 回答1: Your bit about its already being inside an if statement isn't very workable because that doesn't allow for an alternative value to be assigned to something in the case that the initial response is negative. You should be able to work with something like this. Call p() , and assign its result to a ans ,

How can I use the return of a MAPLE procedure as a function directly

半世苍凉 提交于 2019-12-11 03:25:50
问题 This may be very basic, but I can't seem to figure it out: I am trying to use the output of a procedure directly as a function. The Procedure is a prefabricated one, namely the dsolve option in MAPLE. Specifically, I would like to say dsolve({diff(y(t), t) = y(t)*t, y(1) = 1}, y(t), series, t = 1, order = 7) The result is y(t) = t+1-1+(t-1)^2+(2/3)*(t-1)^3+(5/12)*(t-1)^4+(13/60)*(t-1)^5+(19/180)*(t-1)^6+O((t-1)^7) Which is great, but I can't use this as a function directly, i.e., when I type

How to load a package in Maple?

巧了我就是萌 提交于 2019-12-06 05:51:48
问题 I want to use a package called "ESC" elliptic surface calculator that can be uploaded with Maple. The instructions from the creator are: Save as a text file with character encoding ISO-8859-1 (ISO Latin 1) and load within Maple using "read" command). I have problem with uploading to Maple and saving with this encoding. Can anybody say the exact upload command with details and how to save text with this encoding? Here is the package page: http://c-faculty.chuo-u.ac.jp/~kuwata/2012-13/Maple

Simplifying a very long symbolic expression by automatically introducing temporal variables or in any other way

末鹿安然 提交于 2019-12-05 22:47:17
问题 After attempting to solve a symbolic math problem, I got an expression with about 17000 characters. I am using the symbolic toolbox for Matlab, but I am open to any suggestion (Mathematica, whatever). For obvious reasons, I won't copy-paste the expression straight into the question. Here is a link instead. Running the Matlab commands simplify and simple , and even attempts to collect didn't improve the situation (Some got it worse). But I am wondering, I don't care if the expression is

Simplifying a very long symbolic expression by automatically introducing temporal variables or in any other way

北城以北 提交于 2019-12-04 05:39:14
After attempting to solve a symbolic math problem, I got an expression with about 17000 characters. I am using the symbolic toolbox for Matlab, but I am open to any suggestion (Mathematica, whatever). For obvious reasons, I won't copy-paste the expression straight into the question. Here is a link instead . Running the Matlab commands simplify and simple , and even attempts to collect didn't improve the situation (Some got it worse). But I am wondering, I don't care if the expression is evaluated in steps, with temporal parameters. Something like: z1 = a^2*y1; %Now the expression can be