Maple Questions and Posts

These are Posts and Questions associated with the product, Maple
With Maple 12 the compiler accepts complex complex floats.
However there is some limitation in using compiled results:

  # a simple function to be called by another
  foo1:=proc(z::complex[8])::complex[8]; return z*I end proc;
  foo:=proc(z::complex[8])::complex[8]; return foo1(z); end proc;

Now compile:

  cp1:=Compiler:-Compile(foo1);
  cp:=Compiler:-Compile(foo);

The first call works, the second gives an error:

    Error, (in printtab[CodeGeneration:-Names:-FunctionCall])

Hi, please help me to improve my clumsy code. I want a procedure that gives me the nth digit of Pi. I guess there's a much better way to do this, right ?

nthpi:=proc(n)
 Digits:=n+1: # make sure enough digits are available
 evalf(Pi,n+1);  # eval one digit more because the last one is rounded
 op(1,%);# make it integer
 convert(%,base,10); # convert integer to list of Pi-Digits
 op(2,(%)); # pick up the first not rounded digit
 end proc;

nthpi(4);

I just installed the X86_64 version of Maple on my new computer, but I can't find Classic!  Is it not supported on this platform? 

I looked in the installation instructions, and there was no mention either way. 

I have a physics problem that I hope to get help from this forum. The question is like this:

 I have figure here but I cannot paste it. Anyway I will try to make an explanation of where the points in the circle are located.

Please solve & ploting A from (x,y)

A:=nt(((exp(-(1/4)*g^2*l^2)/g.((w^2+c^2*(g^2))/(wh^2-w^2)))*Phi0)*(sin(w*y-*x+`ϕ`)+sin(w*y+*x+`ϕ`)), w = wp .. wh);

g:=(wp/c)*sqrt((w^2-wp^2)/wh^2-w^2);

varphi:=(w*t)/2;

Phi0:=sin(w*t/2)/(w*t/2);

wp & wh are constants.

 Tanks for attention !!!

 

I frequently have a problem where evalf does not fully evaluate an expression.   First of all it stops at constant expressions.  For example,  "evalf(pi)" does not give me "3.14..." it just says "pi".

Also, it sometimes does not finish evaluating expressions.  For example,

 

Are there any ways to overcome these issues?

I don't understand what I'm doing wrong with the plot command...a screenshot shows best:

 

Hi

 

I have a Maple question.

 

List 5 integers that are congruent to 4 modulo 12

 

I already know the answer.

 

Here are some of the list of integers 4, 16, -8, 1204, and -7016360

 

How do you I use Maple to generate list of integers that are congruent to 4 modulo 12

 

If I use 4 mod 12 in maple the result is 4.

 

Any assistance will be highly regarded.

 

Take care

 

 

I have 103 tables ( aal_l,  abf_l  etc )  which each has columns D, T, O, H, C  etc 

I want to exctract column C for all 103 table and store the result in a matrix

 

I know how to extract column C for one table

 

convert(connection:-ExecuteQuery("select C from aal_l", 'output' = Array), Matrix)

 

but how can it be done for multiple tables ...?

 

please help me here:

i want to evaluate the integral:

int(exp(-xi^2*(3*n+xi)/(6*n^2+6*xi*n+xi^2)), xi = -infinity .. infinity)

thanks

 

How do I enter a piecewise multivariate function in maple?

 

Thanks in advance

Lets say I need to add, as an example, 3 times row 1 to row 3.  The matrix is 3x3.  I assume I have to be using the with(LinearAlgebra); first and then I can set up the matrix, but I am lost after that.

Thanks for any help.

Hello,

 

I'm a prime in maple, I have got a problem while trying to solve the following PDE system of equations

declare:=(T(x,y),v(x,y),P(x));
                  declare := T(x, y), v(x, y), P(x)

> sys1:=[10^6*v(x,y)*diff(T(x,y),x)-0.1*diff(T(x,y),y,y)-10^3*diff(v(x,y),y)^2=0,diff(v(x,y),x)=0,-diff(P(x),x)+10^3*diff(v(x,y),y,y)=0];

>IBC = {v(0, 0.2) = 150, v(0, -0.2) = 150, T(x,0) =400, T(0,0,2) =300,P(0.3)=0.1 };

I have some 'discrete' data which I wish to analyze with Maple.  For example, I have

Hi experts, I want to make a loop. Each time the function f should be changed according to n and m. The values that I obtain with Powell (not important for the undertstanding of the problem) should be put into the matrix A[n,m] > List := Powell(f, Xmin0); [-587.000914326964951, [-0.344030213998255226, 100.344030214880177], 12, 134] > m:=1; n:=1; for n to 3 do for m to 3 do end do end do; m:=m+1; n:=n+1; f := proc (Q1, Q2)->m*Q1+n*Q2 end proc; A[n,m]:=Powell(f); # not important for the understanding of the problem
First 1957 1958 1959 1960 1961 1962 1963 Last Page 1959 of 2226