MaplePrimes Questions

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.

How to build a library (package) containing my own procedures ? Could you give me an example. Thank you.

I've written a Mapleflow document that is supposed to use a microphone array to find the intersection of three equations to locate the source of a gunshot.  But the calculation is "Evaluating," and has been for half an hour.  How do I interrupt the calculation?

I'd up load the file, but  

So: 

Not_evaluating_theta.mw

 

When I tried to explain to a student how to set it up, it stopped working.  I tried changing the order, but got the same result. I tried using "t" instead of theta, but got the same result. Please help.

I am trying to simplify a large expression using simplify(), but it takes too long and I eventually run out of processing power after a few days. Is there any way I could get similar results with an alternative function?

Any help is appreciated.

Hi,

I am doing some work on differential equations, and I am checking the solutions.  Whether the solution is correct or not depends on whether or not a real number plus zero*i is a real number or an imaginary number.  I want to test how maple handles this by plotting sin(x)i. 

This is intended to be a complex plot.  I am expecting a series of points along the real axis where sin(x) is zero.  Can anyone help me with this?

 

Hi.

I have to make a picture Polynomiograph from metrics such as

m:= Matrix([[1, 2, 3], [4, 5, 6]])

By assigning each number a color as follows.

1 = aquamarine

2 = blue

3 = brown

4 = coral

5 = cyan

6 = black

How should I write the code?

First 8 9 10 11 12 13 14 Last Page 10 of 2062