## How can I assign pi to a value on Maple?...

I assigned the greek alphabet  in Maple but it displayed an error message since it is already a known constant 3.142. Please how can I assign pi to 0.45 in Maple ?

## Maple Kernel Connection has been lost when using H...

Hi,

I'm just doing a small project/HW for school where I am trying to create a histogram of the appearance of the digits of Pi. My problem is that I lose connection with the Maple Kernel whenever I go over 1000 digits. Why? Is this because my function scales badly? Any help would be appreciated.

```d:=1500;
Digits:=d;
1500
1500
valpi:=evalf(Pi):

dg:=proc(n,k)
floor(n/10^(ceil(log10(n)-k))) mod 10;
end:

with(Statistics):
L:=[seq(dg(valpi,i),i=1..d)]:
Histogram(L)

```

## Computing the Sine and Cosine Funtion...

Hi,

When I type sin(pi/2) the result is sin(pi/2) (not "1.0)

What should I do to get "1.0" instead of replicating the sin(pi/2) ?!

I mean why the expression contating "pi" can not being simplified?

Is there any solution to this problem?

Thanks

## Error when using maximize...

When I put maximize(cos(t)), everything is fine.

When I put maximize(cos(Pi)), everything is fine.

When I put maximize(cos(t*Pi)), it says invalid limiting point??? What went wrong?

## First ten fractions of pi ...

Hello,

I try to get the first ten fractions of Pi with the commands "seq" and "nthconver".

I tried this:

a:= cfrac(Pi);
CFRAC([3, 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, ...])
sec(nthconver(a,i),i=1..10);

But it doesn't work.

Who can help me?

## Implementing Modulo 2Pi...

Hello,

My code records the values I need, however, I need to implement a modulo of 2*Pi on my result for theta. But this leads to a graph with no plots and I'm not sure how to fix it. Any help is greatly aprreciated! Thank you in advance!

Kind regards,

Gam

 >
 >
 >
 >
 >

bia Man

## Why is sin(Pi*1.0) not returning zero exactly?...

sin(Pi*1.0) returns -4.102067616*10^(-10). How do i make it return exact zero?

## why is there Pi and pi in Maple? Why not just Pi?...

one of the most confusing thing for me with learning Maple, is pi vs. Pi. I keep mixing them up since do not remember half the time which one to use.

What is the point of having both? Mathematica only has Pi. If one wants numerical value for it, simply do N[Pi] which is similar to Maple evalf(Pi).

I just spend 5 minutes trying to figure why int((sin(x))^3*sin(k*x),x=-pi..pi); was giving me

While in Mathematica it gives

Then I noticed the Pi vs. pi, and now Maple gives same output.

Why pi was even introduced? was this done early on, or added in later versions? Why not keep Pi a symbolic and with evalf it gives numerical value as with Mathematica? Also, would one use pi?  It if just symbol (evalf(pi)) does nothing, then what is its use? if I can see a good use for pi vs. Pi, may be I'll understand the logic behind this duel system.

## Simple code for MonteCarlo approximation of Pi...

Hello everybody,

But for starting easy, I try this:

with(RandomTools[MersenneTwister]);
directpi := proc (n)
local i, x, y, N;
N := 0;
Digits := 2;
for i to n do
x := GenerateFloat();
y := GenerateFloat();
if x^2+y^2 < 1 then
N := N+1:
end if:
end do:
N;
end proc;

evalf(directpi(4000)/(1000.0), 4);

3.176

I would like to know if this code is appropriate and if it is possible to have a random number between -1 to 1 so it will be easier to plot the points in the square with the circle inside.

Thank you.

```--------------------------------------
Mario Lemelin```
```Maple 18 Ubuntu 13.10 - 64 bitsMaple 18 Win 7 -  64 bits
messagerie : mario.lemelin@cgocable.ca
téléphone :  (819) 376-0987```

## how to wrap an angle to 0 2 pi range...

i have a large angle and i wish to represent this angle called theta in the range [0 2*Pi]. In matlab this is done by the command mod(theta, 2* Pi). ihave tried frem and mod in maple but the two cannot accept 2*Pi as a second argument

how can i do that

## Pi Symbol not diplayed...

Hi,

I am completely new to Maple (and this kind of software in general).

I am just on my first steps of learning...but I quickly noticed, that if I write Pi and hit enter, I do not get

the well-known greek Pi-symbol. I get an ordinary "p" as the result.

I checked the greek-palette...nearly all items in this palette are ordinary letters.

Does anyone have an idea whats wrong?

BTW: I don`t know if it could have to do with that, but I use a german windows 7 installation.

Thank you,

regards,

Kai

## Unprotect This, Unprotect That...

Maple has a number of protected names that cannot be redefined without some work.

A common request is to use the letter j or J instead of the default I for the imaginary unit. Also common is to be able to use the letter I as an ordinary variable, rather than as an imaginary unit. For this, there is a very convenient interface command.

restart;

(-1)^(1/2);

I

interface(imaginaryunit=J):
(-1)^(1/2);

J

(There...

## the nine digit pi approximation challenge

by: Maple

Greetings to all.

A recent post at math.stackexchange.com asked for good approximations to pi using the nine nonzero digits, the four arithmetic operations and exponentiation. The problem definition definitely suggests a computational solution, which is actually non-trivial because the search space of all legal mathematical expressions over the nine digits and with the aforementioned operations is so huge that it cannot possibly be searched exhaustively.

## beta function vs. sine

by: Maple

Dear friends,

I am reporting with a brief comment concerning the integral int(1/(1+x^a), x=0..infinity) with a>=2 a real number. This was evaluated here.

Now Maple 15 (X86 64 LINUX) will quite happily compute this in its most simple form involving the sine when a is not a positive integer or a rational number. If it is, however, a beta function term results,...