Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I just want to reiterate how dynamic programming problems can be solved in Maple.

Especially dynamic programming models that frequently appears in economic models.

First of all it is important to note that is close to impossible to find an easy to understand

and step-by-step road maps to dynamic programming. Why is that ?!  The below Maple

code was basically "discovered" by trial and error and pure stubbornness (caveman 101).

 

Hi All,

I searched the forum and found labelledcontourplot that would give the values/label on the contour plot.  However, when searching the Maple 13 Help for "labbelledcontourplot", the search does not return any result.

 

Thanks fo ryour help.

 

How do I plot f(x,y) = x^3*y, constrained to x^2 + 2*y^2 = 8? 

Thank you for your help.

You can easily (or at least comparatively easy) create Maplets in Maple but you can not (as far as I know)

create shortcuts to such Maplets in the main menu. I must say I find this very strange.

It is like having the tools and resources to build a boat but you don't have access to water.

I don't want to create a Maplet and having to open a worksheets each time I want to load the Maplet.

It just destroys the whole experience. Again I find this very strange :-)

 

Let we have a function, f(x), and want to approximate its integral from x = a til x = b.

Divide the interval [a,b] into n equal (not necessary equal) parts.

Let one of the part, i,  is from x(i) til x(i+1).

Let us draw a tangent to the curve in this part, i, by the command:

Tangent(f(x), x=(x(i)+x(i+1))/2)

we may find the area under this tangent and in this interval through the command:

int(%,x=x(i)..x(i+1))

Thus in ths limit:

the original area is equal to the sum of these areas.

Hi,

I would like to work in modula 26 for the whole workshee.

 

What's the command for that?

 

Thanks.

 

Casper

How to find a pattern in:

 

1, 3, 240, 840, 80640, 887040,...

What is the pattern in these polynomials (how to generate them)?

 

1. x^0

2. 3*x^2 + 3* x + 1

3. 240*x^4 + 480*x^3 + 380*x^2 + 140*x + 23

4. 840*x^6+2520*x^5+3220*x^4+2240*x^3+903*x^2+203*x+22

5. 80640*x^8+322560*x^7+571200*x^6+584640*x^5+379008*x^4+159936*x^3+43272*x^2+6984*x+563

Hi! I have a problem and I don't know what is wrong. I have a piecewise defined function s(y) (see code at the bottom) and I want to integrate it from y=-Pi..2.338412729. I did this integration int(s,y=-evalf(Pi)..2.338412729); but it took so much time so I canceled it after half an hour! But if I enter the integral in the following way int(s,y=-evalf(Pi)..2); int(s,y=2..2.338412729); it takes Maple less than five seconds to evaluate those expressions. The problem is this whole integration process is integrated in a proc for optimization. So, I need to evaluate the expression

 

 

sum((1+1/n)^n-exp(1), n = 1 .. infinity)

Good Afternoon,

Would anybody be kind to help me with the attached file. I have created procedures to calculate the Area, center of gravity , section modulus and moment of inertia of a cross section.

I'm testing the worksheet with an existing example from a text book, and the results are as follows

Area = 75*in2

Zxxtop = 119.219*in3

Zxxbott = 133.245*in3

Ixx = 629.212*in4

Zyyleft = 88.583*in3

Zyyright = 88.583*in3

Iyy = 442.917*in4

xbar = 4.722*in

ybar = 5.0*in

Hi there,

while programming, when I enter RETURN in my proc, I get a strange error

"Error, unable to delimit strings/identifiers"
 

and no further clues given.

What's wrong?

I have a lot of equations one of them is like "q:={3-x=1}"

if I use   switch:=z->lhs(z)-rhs(z); and I use map(switch,q); it gives me 2.-x which is bad for Bertini software which I use for some purposes. I need to have 2.0 or 2 but not 2.

This dot after 2 without any number after that is trouble for me.

What should I do?

Thanks

 

 

How can I simulate and estimate the parameter value p for an AR(1) model of the form X(t) = p*X(t-1) +E

or alternatively X(t) - X(t-1)=p*X(t-1) - X(t-1) + E   where E is a random term 

Hello,

I have a symbolic function, and I want to see its pointwise numerical evaluation in fortran format.

Basically, if I have a function like e^x, I want an array like:

  2.7183d+000
  7.3891d+000
  2.0086d+001
  5.4598d+001
  1.4841d+002
  4.0343d+002
  1.0966d+003
  2.9810d+003
  8.1031d+003
  2.2026d+004

What I tried doing was:

-----

First 1889 1890 1891 1892 1893 1894 1895 Last Page 1891 of 2219