## find all the prime numbers...

find all the prime numbers from 1 to 100 using if condition and loop bye maple 9.5

## draw a function as a dotted line?...

Hi, Given a function f(x)=x^2 i would type the following command restart:f:=x^2:plot(f,x=-10..10,y=0..10); how do I get the graph to show f(x) as a dotted line?? thanks in advance Robert

## Worksheet auto execute...

Hi to all.. Maybe a beginner's question: How to configure Maple to automatically execute a worksheet as soon as it is loaded? I use Maple 8 on Windows XP and don't want to do Edit/Execute worksheet. Maple is opened via an external batch file. Also, that worksheet produces a graphic file. How to modify the worksheet so that the graphic is automatically saved in a c:\Picture directory after being produced? Thanks for your kind help, Pierre

Hi, I am using Maple to carry out some structural analysis of a beam member. Now, i am facing with a programing problem and I need your help desperately. The beam member being studied can either be in tension or compression. Compressive or tensile reponses are governed by an equilibrium equation and whether or not this equation produces a valid solution. At first, the member is assumed to be in compression and compressive reponses lead to the equilibrium equation. If this equilirium equation does not produce any solutions then the initial assumption is incorrect and the tension case is considered. My problem starts here. I want to make the program switch automatically between compression and tension cases but I dont know how to construct the 'switching criteria' which is " the equilibrium equation does not produce any solution"..So my questions are:

I currently have some MathMLViewers in my maplet and I don't want them to have vertical scroll bar at all times. Does anyone know how to switch vertical scroll bar off for MathMLViewer? Also, is any way that I can have two windows dispaly at same time so I can change window focus by clicking window? Last question, is it possible to display multiple items in ListBox by using Set("ListBox_Name"('value') = blah, blah, blah); Looking forward for your respond, thank you. Tracy

## write a process to calculate this continued fracti...

Hi, All, I am calculating the staircase fraction ...............................1 ..........f(n) = 1 + ------------- .................................1 .......................2 + --------- ...................................1 ...........................3 + ----- ................................4 + x ........................................x ............................................x ................................................n (I have to use the dots to fill the space, all below input format deblank the front space) I have no idea on how to write a loop to calculate this.

## mapleSTUDIO or make plotting easy to use

by: Maple

With mapleSTUDIO you can plot functions in 2D and 3D. Animating your plots won't be a problem any time. This is the easiest way to plot your functions.
You can use it here online on mapleNET or you can download it and run the worksheet on your Computer. For adding new components to this worksheet I will only change the file on mapleprimes, but the name and the URL will be the same. So you should bookmark the mapleNET-URL for using the newest version of mapleSTUDIO. You can also add my Blog to your Feed-Reader, so you will know, when a new version is available.

## Plotting from a data file...

Hi there. I'm trying to make a 3d pointplot by calling an xyz .txt file. It's for a simulation I'm running in Maple, but with results that need to be viewed with gnuplot. It's simply easier to interact with the plot in Maple while I'm still building the code. The data looks something like below (okay, what you see isn't monospaced, so it doesn't line up as nicely as I had in the original post. You get the idea though - first number is x, the next is y, the other is the intensity): (x) (y) (intensity) #these titles aren't actually there 0 0 1 0 1 2 0 2 3

## non-linear equations...

Is it possible for Maple to remove non-linear terms from an equation? I want to use taylors therom on F(V+v, S+s) and get the answer back without its non-linear terms. (N.B. V,S are constants and v,s are variable) cheers gillersuk

## Steepest Descent Method...

Hello, My name is Kostas and I am new in the forum. I am new in Matlab as well. I am trying to get some advice in executing a code that I found on a book "Numerical Methods using Matlab". The code is as follows: function [xo,fo] = opt_steep(f,x0,TolX,TolFun,alpha0,MaxIter) % minimize the function f by the steepest descent method. %input: f = ftn to be given as a string ’f’ % x0 = the initial guess of the solution %output: x0 = the minimum point reached % f0 = f(x(0)) if nargin < 6, MaxIter = 100; end %maximum # of iteration if nargin < 5, alpha0 = 10; end %initial step size if nargin < 4, TolFun = 1e-8; end %|f(x)| < TolFun wanted

## lists...

How do I append lists? An example is a1:=[1,2,3]; a2:=[4,5,6]; Desired result is [1,2,3,4,5,6]. Now I a3:=[seq(a1[i],i=1..3),seq(a2[i],i=1..3)]; That is not very elegant. Also how do I find the dimension of a list? Like dimension(a1); 3