Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Does Maple have a command for return true or false when querying set membership of an element?

I have sets of random integers, Stuff[k], indexed by k, for example

Stuff[9]:={2,5,6}:

I need to be able to test if

7 is a member of Stuff[9]: // I should get false

5 is a member of Stuff[9]: // I should get true

There is no such set membership function listed in the Help menu.

I finally figured out a for loop for sequentially removing one set from another (set-theoretic subtraction).

Below is the code found on this site for generating the mandelbrot set.

 

with(ImageTools):

MyMandel := proc(pt)

local i,z,c;

c := pt;

if abs(c) > 2 then

return 1;

else

z := c;

for i from 2 to 100 do

z := z^2 + c;

if abs(z) > 2 then

return i;

end if;  end do:

return 0;

end if; end proc;

 

GenerateComplex := proc(pts,X1,X2,Y1,Y2)

option evalhf;

local X::Vector, Y::Vector, f1::Vector, Z::Vector;

Forgive my ignorance here but let say we have some data that I want to

model with some partial differential equations. What would be most efficient way

to come up with the specific equations inorder to be able to calibrate such system ?

I guess I could just calculate the partial elasticities and deduct some relationships from that

but there has to be a more beautiful approach ?!

Okay, I'm trying to solve a person's expected utility given a budget constraint using the Lagrangian method on Maple. I keep getting the error 'Warning, solutions may have been lost'

Here is what I have so far. Can anyone tell me what I'm doing wrong?

Z:=(EU+λ*(Px*X+Py*Y+f))

solve({diff(Z,X)=0,diff(Z,Y)=0,diff(Z,f)=0,diff(Z,λ)=0}.{X,Y,f,λ})

How do I restart label in same page of maple worksheet mode. I wanted to label equation in consecutive sections numeric numbers, such as change the labels from 49.11...49.1.5 to 49.2.1.

Download 7845_notes.pdf
View file details

Hi,

I am trying to go through an example in my notes.

p:=2038074743;
q:=1190494759;
n:=p*q;

x:=141213562373095048;

y:=Power(x,2) mod n;

 

then I do the following,

Power(y,(p+1)/4) mod p;

 

how to find an expansion of: (we may assume m::posint)

(sum(a^k*b[k], k = 1 .. infinity))^m

for example: the trinomial theor...

(a+b+c)^m = sum((m,k1)*(m-k1,k2)*(m-k1-k2,k3)*c1^(k1)*c2^k2*c3^k3,k1+k2+k3=m)

 

here (m,k1) is the binomial coefficeitn

how to expand the following expression;

((1/6)*e*(6*(D(f))(gamma)+3*((D@@2)(f))(gamma)*e+((D@@3)(f))(gamma)*e^2))^m

 

Hi all, I am working on a maple project and I attempted to use the ODE analyzer assistant. The problem now is that every time I restart and run my project, the assistant pops up without me physically calling it. I don't see why this happens, its quite frustrating. Anyway to turn it off? Thanks!
There any command within the DETools package, with which to avoid the following steps:
 

> diff(Q(t), t) = eta*(T(t)-theta)*s/l;

d eta (T(t) - theta) s

--- Q(t) = --------------------

dt l

> diff(Q(t), t) = -c*m*(diff(T(t), t));

d / d \

--- Q(t) = -c m |--- T(t)|

dt \ dt /

> rhs(diff(Q(t), t) = eta*(T(t)-theta)*s/l) = rhs(diff(Q(t), t) = -c*m*(diff(T(t), t)));

eta (T(t) - theta) s / d \

Especially in old books (but not only there) the authors prefer the notion
of 'argument' ( = polar coordinates and using the angle).

Sometimes it comes to something like 

                | arg(-z) | < Pi and | arg(1 - z) | < Pi

which I prefer to have in terms of interval notation 'z in ... ' or its
complement  'not (z in .. )'.

I do not even know how to get | arg(z) | < Pi  <==> z is not a negative Real. 

How can I do it in Maple?
Can you guys explain me the steps to put the commands, formulas in the post comments. I can not find the form that they are legible.

I tried with:

Maple Tag
Writing in Word and use: Paste from Word.
Exporting the Web worksheet, then copy and paste.
Do not just find a way to let me
comment on the way that a lot of you do.
 
Gracias
Hermes

1. how to replace in the expression:

I'm trying to do an integral like this:

F(y) = int(x^-3 delta(1-y/x^1/2),x=1..2)

any advice?

Thanks

I spent the last 2 hours searching in the Help commands for the command that returns the length or size of a given ordered array or list.

e.g. I have Thing:=[3,7,6,5]:

I want the function that returns the value 4 for the size of Thing.

I am really surprised that such an operation is so difficult and hard to compute that it is never in any of the Help menus.

First 1879 1880 1881 1882 1883 1884 1885 Last Page 1881 of 2224