MaplePrimes Questions

I am trying to use Maple 14.01 for implementing the computation of some cooperative game solutions with transferable utility.

As a first step for computing the CORE, I need to be able to draw the 2-simplices ( a triangle in R^2 with vertices (1,0,0), (0,1,0), (0,0,1) and 3-simplices ( a tetrahedron  with vertices  (1,0,0,0), (0,1,0,0), (0,0,1,0), (0,0,0,1) ). Certainly, I would like to be able to rotate and to visualize from different angles the figure.

A small question:

When I send the following command, I can see the matrix of 10 x 2:

Matrix( [seq( [ n , sum( evalf(1/(n+1)), k=(1/3*n)..(2/3*n) )], n= 1..10)]);

 

However, when I want to evaluate for  n=1..50.. I cannot see any numbers but only a description of a matrix.

How may I can I see the matrix for n=1..50?

 

Thanks a lot for your attention,

 

Jean-Jacques

 

Hi; every body

i have a problem with fsolve using fours equestion. i use fsolve to slove four equestions and it doesnot give any soltion even if i determent the period of solution as follow,

x1=0..3, x2=0..2, x3=0..1/2, x4=0..5.

i have increased the digit to 100 but it still does not give solution where i am sure there is solution in this interval.

 

I am looking to create a list-of-lists with all the combinations of 1..7.
The order is not important so for example [1,7] [7,1] should only return [1,7]

ie

[[1],[2],[3],[4],[5],[6],[7],[1,2],[1,3],[1,4],[1,5],[1,6],[1,7],

[2,2], [3,3], [4,4] ......................
[3,2]...................
.......
[7,2].............

[1,2,1]........

[1,2,2].......     ]

 

I am no sure I am explaining...

I just bought an HP 8500A 910A printer. So far every other application except Maple prints correctly and well. When I print, each (whole) page is printed in the upper left hand quarter of a letter size sheet of paper. This never happened with my old HP LaserJet 4L. After much search, there do not seem to be any setable preferences that could lead to this result.

On the HP forum, there is another user with the same problem except the application is different....

Hey folks I need some help with basic string manipulation.

 

Say I want to find the sum of the digits of 123

 

What I've been doing is the loooong way of converting 123 to a string, breaking it up into 3 seperate numbers, converting these back to their decimal value, then adding them up.

 

How could I make this more efficient? Is there some part of StringTools that would do this for me?

 

Then...

a. How to write a  proc(a,h,A,B,C) procedure which calculates the area of the projection of the pyramid OKLMS on the plane p:A*x+B*y+C*z+D=0,where O(0,0,0), K(a,0,0), L(a,a,0), M(0,a,0), and S(a/2,a/2,h)?
b.  How to write a  proc(r,h,A,B,C) procedure which calculates the area of the projection of the cone
with the base {(x,y,z): x^2+y^2<=r^2,z=0} and the vertex S(0,0,h) on the plane p:A*x+B*y+C*z+D=0?

I would like to have some help to write the maple code (hopefully compiled) for

An Exact Polynomial Algorithm for the 0/1 Knapsack Problem , Edouard Petrounevitch
http://www.optimset.com/knapsack.pdf


I think such algorithm looks promising but I am no expert when it comes to optimization :-)

Is there a function or procedure within Maple (v13) that will return the highest power of a polynomial?

 

Related to this, how do I determine the error return value from coeff(a,x,i) ?

 

TIA

Dears,  I want to generate a following matrix

g:=proc(i,k); if 86<=i<=100    then if i+1<=k<=100  then Y   end if end if end proc:

A:=Matrix(100,100,g);

Is this true (Can i use two if statments)

Could any one help me

Amr

123123.mw

Hello,

I use some commands to generate a figure, as the picture illustrated, The equators of the two balls are solid lines.

It is not proper to demonstrate a 3D figure. I want to make parts of the equators become dash lines if they are...

hoping someone can help me, one of my exam prep exercises asks the following

"

Consider the equation x^2+y^2 = 2+cos(x)*sin(y). Transform the equation into polar coordinates
using the ”subs” routine, and plot the resulting equation in polar coordinates (read the helppages
of plot to find the syntax for polar plots). Evaluate an appropriate integral to find the
area enclosed by the curve.  "

 

I did the conversion and plotting by

Hi all,

I have this two equations:

ap[k]=Sum(a[n]*sin(n*theta)*f(n,k),n=1..nn);

a[n]=Sum(ap[k]*g(n,k),k=1..kk);

Where ap[k] and a[n] are the unknowns.

I want to convert the two equations in the Matrix form A*X=b to solve it numerically and where X=[ap[k, k=1..kk] and a[n, n=1..nn]] and A the matrix with a rand (nn+kk,nn+kk) the coef and b the second member and a vector (nn+kk)

Thank you for any help to do this with Maple

Hi everybody,

 

I've got a 3d maple plot which I would like to export to a 3d cad format. There are a couple of file formats and I do not want to narrow that to one (autocad, catia, solid edge, proEngineer ...)

If this is not possible: is there any file format which I can export to, from which with a third party tool it is possible to export to 3d cad file.

 

Thank you

 

Harald

Hello,

I use the commands below to generate a conical helix:

with(plots);
x := proc (t) options operator, arrow; t*cos(t) end proc;
y := proc (t) options operator, arrow; t*sin(t) end proc;
z := proc (t) options operator, arrow; t end proc;
spacecurve([x(t), y(t), z(t)], t = 0 .. 12*Pi, thickness = 5, color = blue, axes = normal, numpoints = 500);

First 1917 1918 1919 1920 1921 1922 1923 Last Page 1919 of 2431