Please, i need the code for an implementation of Eratosthenes Sieve, i need a program that calculate primes less or equal than "n", thanks and sorry for my english(i'm from Spain).

How do I round to a certain number of digits after the decimal point?
Is there an easier way than the one shown below?
> number:=12.3678918;
> before:=trunc(number);
> after:=number-before;
> afterrounded:=evalf[2](after);
> roundednumber:=before+afterrounded;

How do I format a set of strings consisting of numbers and normal text strings. I want to label a color bar like it is shown below. Each last digit of a number should be below the last digit of the number in the string above.

Is used the following command to create the label of the color bar:
c:=textplot([seq([2.42,0.05+i/5*0.95,Join([convert(2*100*i/10,string), "*(max(energy)-min(energy))"])],i=0..5)],align={RIGHT})
P.S.: What is the maximum file size of an attachment to a post? I couldn't attach an image that's 8kb big.

How do I calculate the maximum value of a procedure within a defined region. I want to calculate the maximum value of the procedure p for Ia_IaLGmax=0..2, Ua_Ue=0..1. How can this be done in maple?

restart;

with(plots):

Ue:=75;

L:=5*10^(-6);

f:=80*10^3;

T:=1/f;

factor:=1000;

E_con:=1/2*L*(Ia_IaLGmax*Ue/(8*L)*T+1/2*Ua_Ue*Ue/L*(1-Ua_Ue)*T)^2;

E_dis:=1/2*L*((Ue-Ua_Ue*Ue)/L*(1/2/(Ua_Ue-1)*(-(Ua_Ue-1)*Ua_Ue*Ia_IaLGmax)^(1/2))*T)^2;

helpvariable:=Ua_Ue=(Ua_Ue)^2/((Ua_Ue)^2+1/4*Ia_IaLGmax);

boundary:=solve(helpvariable, Ia_IaLGmax);

p:=proc(Ia_IaLGmax,Ua_Ue)

if Ia_IaLGmax<=(-4*Ua_Ue^2+4*Ua_Ue) then factor*1/2*L*((Ue-Ua_Ue*Ue)/L*(1/2/(Ua_Ue-1)*(-(Ua_Ue-1)*Ua_Ue*Ia_IaLGmax)^(1/2))*T)^2 else factor*1/2*L*(Ia_IaLGmax*Ue/(8*L)*T+1/2*Ua_Ue*Ue/L*(1-Ua_Ue)*T)^2 end if end proc;

Hello! Is it possible to change the background color of worksheets or document? Regards, Franky.

I am curious as to which input mode and which document mode I should be using. I started with Maple 9.5 on Mac, when I upgraded to Maple 10 I was already accustomed to the worksheet mode so I stayed with it. I am under the impression that the document mode is more for quick calculations and producing high quality technical documents and the worksheet mode is more for programming and intensive work. Hence the names document and worksheet. If this is the wrong impression please inform me. Adding to my confusion is the choice between 2D Math input and Maple input. Up to this point I have been working almost exclusively in worksheet mode using standard Maple input. I have been working my way through the Introductory Programming Guide and I assumed this was an appropriate choice for this purpose. However, I am not sure that it is. I am now wondering if standard Maple input will eventually be phased out in favor of 2D Math input. Can someone tell me if this is the plan? Since, if it is, it would be advantageous for me to switch now. Thanks in advance.

I'm going through Francis Wright's COMPUTING WITH MAPLE. c2002, and based on Maple6. can anyone explain the reason for the output that I get just for the last statement alone dealing with the change of base for logarithms ?
>

umm....is this site for maplestory??? how do i get a faster better maplestory? plz help

Compiler:-Compile uses a preset set of compiler flags. But for example I would like to replace -O2 by -fast, which is a special flag for the Mac G5. Is there any way to do this? I would even be willing to dig into the Maple code responsible, if I knew where to dig.

Bob.

I am working with Maple 9 and I am trying to create some kind of density plot similar to the one shown below this message (this one was created with matlab). I haven't yet figured out how to get a density plot with a color gradient and a scale (or legend) at the site of it which shows which color corresponds to which density value.
Actually I want to plot a capacitor (or inductor) current and stored energy in an inductor (two different diagramms) which are depending on the input current and the output voltage. This should happen in a similar diagramm shown below.
I would be very thankful if you could help me to solve this problem.

Hi, I just started using maple yesterday. I got version 10 and was wondering how I could get a definite integral for the function below. For some reason whenever I try to, it doesn't give me an actual numerical answer but a restatement of the statement. The function is: (sqrt[x^2-0.2^2]/sqrt[x^2-0.3^2])*(0.3/x) Thanks in advance.

Hello - thanks rcoe for your previous post.
One of my students encountered a system error after clicking the link to his assignment and entering his username and password. I created a "fake student" and was able to recreate the error a couple times after randomly opening and closing some assignments. The error stopped occuring after I logged in as the instructor and cleared any active assignments the student had.
I am running Maple TA version 2.0.1. Is this a bug or do you have any suggestions on how to avoid this error in the future?
Here are the two error messages I received (at different times):

I've looked at Alec Mihailov's interesting

web page describing how to use the Microsoft assembler (MASM) to create a DLL that can be called by a Maple procedure. I'm attempting to rewrite the code using the GNU assembler (

**as**) and have a few questions.
Page 331, section 6.2 of the

*Maple 10 Advanced Programming Guide* states that, to create a DLL, "the external library functions must be compiled by using the

`_stdcall`

calling convention, which is the default under UNIX but must be specified when using most Windows compilers." This leaves me somewhat confused. My limited understanding is that the

**stdcall** calling convention has two effects:

I recently gave a Maple T.A. assignment to my students, and now I'd like to extend the deadline by a day or two. Should I be wary of any side-effects to changing the due date after students have started working on the assignment?
Thanks,
Marc
(I mean technical side-effects, not the side effect of having my students think I'm a pushover :)