MaplePrimes Questions

I am looking for an output without denominator. I.e.:  2^(-1/3) instead of 2^(2/3)/2

Thank you

Given some intert expression like 4%*5 %+ 3 is there a way to progressively convert it to a non-inert expression(and evaluated expression)?

I'd like to see the stages without having to hard code it all. Value simply converts the expression all the way down. I'd like to see intermediate stages. Ideally it should followthe order of operations and hault when it reaches a fixed point(when the output equals the input).

e.g., value(exp, 3) will value the expression 3 times carrying out one one reduction of inert operations.

Hello

I have seen some examples of linear programming or integer programming in Maple. But, I am wondering how to solve a mixed-integer program when just some of the decision variables are integer and the rest are continuous? I would be thankful if you can share an example. 

Thanks

Hello all,

The following minimal worksheet leads to a "Kernel Connection Lost" message. At seemingly random times, I get a `System error, `, "bad id" message in the worksheet output instead.

Temporarily disabling ESET Internet Security did not help. Before I contact technical support, I would like to ask if there is anything obvious that I am overlooking that could cause this problem.

Thank you very much.

kernelopts(version);

`Maple 2021.1, X86 64 WINDOWS, May 19 2021, Build ID 1539851`

(1)

with(Iterator):

P := CartesianProduct([1,2,3,4],[1,2,3,4]):

add(p,p in P);


Download Minimal.mw

I don't know how overcoming this error . Thank you. MyPackage := module() export f1, f2; local loc1; option package; f1 := proc() loc1 end proc; f2 := proc( v ) loc1 := v end proc; loc1 := 2; end module: savelib('MyPackage'); Error, cannot open archive, C:\Program Files\Maple 2018\lib, for writing. restart; with(MyPackage); Error, invalid input: with expects its 1st argument, pname, to be of type {`module`, package}, but received MyPackage

x1^4 + x2^4 + 0.4*sin(7*x1) + 0.3*sin(4*Pi*x2) -1 = 0;
The task itself is not needed by anyone, it's just for rest and distraction from work.
(For example, this is not difficult to do with Draghilev's method.)




I have a system of equations that returns a RealRange :

xLp_tmp := RealRange(85.32914119, infinity)

it actually looks like this:
 

anyway, I want to "pick" the lowerbound of that range and assign it to a variable but I can't figure  out how to do it.  

I've tried:

xLp_tmp[1] 

lowerbound(xLp_tmp)

but neither worked.  I don't know what else to try.

Thank you in advance for the help.

Dear Forum, 

 

I want to make a Document where some values are initialised and left alone afterwards.
The startup-code seems to be the solution. The manual says, it is executed, when the document is reloaded.

But if i execute the document with "!!!" the startup-code is executed too. 
How can I avoid this ? 
Is there a good way to write "run once" code ?

 

Thank you very much

 

Klaus

startup code is  : 

init:=false;

After reloading, this should be false  init = trueNULL

the startup code should be executed after reloading but is executed when the code is executed with !!! . init is set to false again
If the code is executed stepwise , ! by ! , it behaves as expected.

if not init then x := 3; y := 4; init := true end if
 

2*x = 8NULL

x := 4

4

(1)

2*x = 8NULL

NULL

NULL

NULL


 

Download doesnotrunonce.mw

Dear esteem colleagues,

Please I am trying to plot a function using both implicitplot and contourplot. However, I found out that I have two different plots. What are the differences between them and perhaps which is better?

Thank you all for your time and best regards.

with(GroupTheory):
MinimumPermutationRepresentationDegree(PermutationGroup({[[2, 3], [4, 5]], [[2, 5], [3, 4]]}, degree = 5, supergroup = PermutationGroup({[[2, 3, 4]], [[1, 2], [4, 5]]}, degree = 5)));

#an error appears in Maple 2017
 

As a newbie I tried to do some simple calculations. Unfortunately one of my calculations does not solve. I assume I do not see the obvious. Would someone be so kind to help me out? Thank you
 

restart

with(LinearAlgebra)

pH := Vector(2, {(1) = 7.17, (2) = 7.25})

Vector[column](%id = 4598165698)

(1)

pCO2 := Vector(2, {(1) = 74, (2) = 56})

Vector[column](%id = 4696862338)

(2)

pK := 6.1

6.1

(3)

CO2 := `~`[`*`](pCO2, 0.3e-1)

Vector[column](%id = 4696842050)

(4)

HCO3 := `~`[`*`](`~`[`*`](0.3e-1, pCO2), 10^`~`[`-`](pH, pK))

Error, (in rtable/Power) exponentiation operation not defined for non-algebraic exponents

 

TCO2 := CO2+HCO3

28.30272572

(5)

VCO2 := 22.4*(28.3-25.41)*5.9

381.9424

(6)

NULL


 

Download test.mw
 

restart

with(LinearAlgebra)

pH := Vector(2, {(1) = 7.17, (2) = 7.25})

Vector[column](%id = 4598165698)

(1)

pCO2 := Vector(2, {(1) = 74, (2) = 56})

Vector[column](%id = 4696862338)

(2)

pK := 6.1

6.1

(3)

CO2 := `~`[`*`](pCO2, 0.3e-1)

Vector[column](%id = 4696842050)

(4)

HCO3 := `~`[`*`](`~`[`*`](0.3e-1, pCO2), 10^`~`[`-`](pH, pK))

Error, (in rtable/Power) exponentiation operation not defined for non-algebraic exponents

 

TCO2 := CO2+HCO3

28.30272572

(5)

VCO2 := 22.4*(28.3-25.41)*5.9

381.9424

(6)

NULL


 

Download test.mw

 

with(Student:-Basics); simplify((b - 1)/(b + 2 - (b^2 + 2)/(b - (b - 2)/(b + 1)))); b - 1 This is correct, but I want to see the step-by-step solution. P.D. I try the ExpandSteps command already but the result doesn't give me the solution. Please, help me. Thanks in advance

Is there an option or a tool to know if maple is trying to finish the calculation or if it is in a bucle?

Is there a Maple function that given a group gives its name?

In a calculation I am encountering expressions of the following kind:

-.27059805007310*sin(.12+epsilon)+.27059805007310*sqrt(1.-cos(.12+epsilon)^2)

As is known, for epsilon < Pi-0.12, the two terms are equal but opposite in sign and the result should be zero (ok, maybe a few 1E-15 for round-off). But for the heck of it I cannot get Maple to simplify this with the assumption e.g. epsilon < 0.1.

This can probably be simplified by squaring the two terms and then subtracting them, but that can possibly lead to other "interesting" effects and besides is a bit cumbersome.

Has anybody found a good way of  doing this?

Thanks,

M.D.

First 14 15 16 17 18 19 20 Last Page 16 of 2066