## problem with for loop...

hi; I'm written program of composite midpoint in this general form: int(f(x),x=a..b)=2*h*(sum(f(x[2i]); h=(b-a)/(2m+2) the function is: f(x)=1/(2+x^4); a=0; b=1; and all the given inside the program and I wretten the program but i have problem , Iwant compare between the approximate vales and the exact value this is the program: (doing in maple9.5)>> > restart; > f:=x->1/(2+x^4): a:=0: b:=1: > EI:=int(f(x),x=a..b): > EI:=evalf(EI); > for k from 1 to 3 do > n:=2^k*10: > h:=(b-a)/(n+2): > m:=n/2: s:=0: end do; > for i from 1 by 2 to n do > x:=a+(i-1)*h: > s:=s+f(x): > I(k):=2*h*s:

## Roots of degre 4 Polynomail with costant terms...

Hi everybody!! I'm looking to solve the roots of the following polynomial: Rootof(9*Z^4+(-12*x[1]+36)*Z^3+(33-72*x[1]-6*x[1]^2+L^2)*Z^2 +(-2*L^2*x[1]+36*x[1]^2+12*x[1]^3-66*x[1])*Z-3+33*x[1]^2-3*x[1]^4+L^2*x[1]^2) where x[1] and L are constant terms. Is there a analytical solution, knowing that I'm working in real domain with Z between ]-3/2,3/2], x[1]>Z, x[1] between [-3/2,3/2[, and 0<>

## Alternate use of Prime...

Its common in textbooks when dealing with the subject of transformation of coordinate systems to used primed coordinates, e.g. x' y' x'. MAPLE tends to interpret primes as derivatives. Is there any way to tell MAPLE that these primes represent different variables, not derivatives?

## How to handle a very long Module ?...

Hello, I have written a long Module with around 30 procedures (in Linux RedHat, Maple 10.03) it becomes cumbersome to write and edit it, especially everytime I modifie something, because the Java environment takes a long time to display when the execution group is so big. Is there a way to break a module into smaller pieces? Maybe call sub-modules written elsewhere? Thannk you for your help, Al.

## sequences with units...

Is it possible to define sequences or lists etc with units?? t:= (seq(100[s]..2000[s],100[s])); and t:=seq(100[s],200[s],300[s]); flag an error. if not is it possible to define the sequence, how can you append the units after a calculation. I want to perform the same calculation using units w/ one of the parameters varying to produces a list of calculated outputs all w/ units. Possible? Easy? e.g. v=d/t simple enough. well how can I generate a series of outputs from the above time sequences at a fixed distance d that spits out the velocities with units of m/s? Thanks,

## Strange !! Maple makes mistakes ! What am I doing ...

Already posted this in my previous thread, but as it is different from the initial topic thought I would post it seperately So I'm playing with integer series and polynoms and it looks like Maple makes mistakes !! What am I doing wrong in below sheet ? View 3284_test2.mw on MapleNet or Download 3284_test2.mw
View file details The result provided by Maple is obviously wrong as all these functions should be positive.

I am having problems replicating the results from a theoretical physics paper from 1968. The paper deals with how lasers behave in certain material types, in this case nonlinear optical materials. But on to the maths, I'm trying to solve a couple of integrals but it would appear that they are very badly behaved with quite horrid results when i compare the plots to the plots in the paper. I have resorted to using Int to try and solve them numerically which sort of works, but using either numerical or analytic methods maple cannot give an answer for some values of parameters and just sits there for hours trying to solve it.

## Optimization problem...

I have to maximize: Max P: 3.35a+3.55b+3.85c-2.6d under the folowing constraints: a,b,c,d>0 a+b+c+d=1 d=0.016a+0.016b+0.04c while minimizing: 0.002a+0.0212b under the constraints:a,b>0 and a+b

## Mathematical Modelling of a ships lookout in crows...

hi i am seeking help for a little problem The question is a part of my coursework but it doesnt make sense to me i dont know how to use maple to construct a model can you please help thanks. On board sailing ships or warships, a lookout stood watch in a crows nest high on the main mast. b) Construct a mathematical model to show how far a lookout can see. Clearly indicate any assumptions you make and define any parameters you use in your formula and in the construction of your model. c) You are given that the eye-level of a typical on deck lookout is 1.75m above deck level, the floor of the crow’s nest is 25m above deck level and the deck itself is 5 m above (flat) sea level. The radius of the earth can be taken as 6,3000 kilometres.

## MathMLViewer...

I am creating a maplet application which requires to provide theorems, definitions, and formulas with mathematical symbols. I used MathMLViewer element but it was very unfriendly. Is there any way to control this element to make the statement readable? For example: mu=sqrt(u[1]^2+u[2]^2+u[3]^2); angA:=arcos(u[1]/mu);angB:=arcos(u[2]/mu);angC:=arcos(u[3]/mu); t1:=Magnitude of vector u is*mu*Direction angles are:*A=*angA*, B=*angB*, C=*angC; with(Maplets:-Elements): maplet:=Maplet([[Mathviewer('fonsize'=10,wrapped=true,width=300,height=180,value=MathML-Export(t1))], [Button("OK",Shutdown())]]):Maplets-Display(maplet);

## Newbie question on getting the right form for poly...

Hello there I'm a newbie, both here and to Maple ! :) So I am playing around with some polynoms on integers that I would like to further use in Python programs. Maple is really great to help me get these polynoms, but the problem is that I would like to have them formated in the end with a big numerator over a single denominator, so that python makes the right computations on integers. So for instance, instead of : P(n) = 1/3*n^3 + 1/2*n^2 + 1/6*n I would like to have : P(n) = (2*n^3 + 3*n^2 + 1)/6 (if this is with a big horizontal line of course perfectly ok) Is there a special formating/simplication/transformation function that is available in Maple to get that ?

## Trouble understanding mathematical problem...

Hi, I am working on an excersise about surface integration. Normally I would define my Surface like this: Surface(

## Problem in Solving PDE...

Hello I to have about the PDE question, the topic like appendix, asks everybody to help me to do explains View 2857_QQ.mw on MapleNet or Download 2857_QQ.mw
View file details