toandhsp

300 Reputation

11 Badges

13 years, 38 days

MaplePrimes Activity


These are replies submitted by toandhsp

Thank you very much.

Thank you very much.

I typed wrong. It must be 3*x/8 - 1/4*sin(2*x)+1/(32)*sin(4*x).

I typed wrong. It must be 3*x/8 - 1/4*sin(2*x)+1/(32)*sin(4*x).

Thank you very much. Another way, I use DirectSearch package

> restart;

DirectSearch:-SolveEquations([(x2-x1)^2+(y2-y1)^2+(z2-z1)^2 = 9,

(x3-x2)^2+(y3-y2)^2+(z3-z2)^2 = 16,  (x3-x1)^2+(y3-y1)^2+(z3-z1)^2 = 25], {abs(x1) <= 10, abs(x2) <= 10, abs(x3) <= 10, abs(y1) <= 10, abs(y2) <= 10, abs(y3) <= 10, abs(z1) <= 10,

 abs(z2) <= 10, abs(z3) <= 10}, assume = integer, AllSolutions, solutions = 3);

Thank you very much. Another way, I use DirectSearch package

> restart;

DirectSearch:-SolveEquations([(x2-x1)^2+(y2-y1)^2+(z2-z1)^2 = 9,

(x3-x2)^2+(y3-y2)^2+(z3-z2)^2 = 16,  (x3-x1)^2+(y3-y1)^2+(z3-z1)^2 = 25], {abs(x1) <= 10, abs(x2) <= 10, abs(x3) <= 10, abs(y1) <= 10, abs(y2) <= 10, abs(y3) <= 10, abs(z1) <= 10,

 abs(z2) <= 10, abs(z3) <= 10}, assume = integer, AllSolutions, solutions = 3);

I want both area and perimeter are interger numbers. This is my code. But the program run too long and i stoped. Please check for me my code and comment to me. Thank you.

 

> resrart:

N:=5:

L:=[]:

for x1 from -N to N do

for y1 from x1 to N do

for z1 from y1 to N do

for x2 from -N to N do

for y2 from -N to N do

for z2 from -N to N do

a:=sqrt(x1^2+y1^2+z1^2):

b:=sqrt(x2^2+y2^2+z2^2):

c:=sqrt((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2):

p:=(a+b+c)/2:

S:=sqrt(p*(p-a)*(p-b)*(p-c)):

if type(a, positive) and type(b, positive) and type(c, positive)  and type(p, integer)and type(S, integer)then L:=[op(L), [[0, 0, 0], [x1, y1, z1], [x2, y2, z2]]]: fi:

 od: od: od: od: od: od:

 nops(L);

 L;

 

Thank you very much.

Thank you very much.

I have an equation of the plane Q: x + y + z - 1 = 0. Now i want to define a function 

f:=(x,y,z)->lhs(Equation(Q)): 

and i calculate the value f(1, 2, 3), but Maple  does not understand. Plese help me.

If i want to substitute the coordinates N(a + 1, b + 2, c + 3) into the equation of the plane Q. What must i do?

We must solve the equation 

- int((x-m^2)/(x+1),x=0..m^2) =1, where m <>0.

Use Derive is very good. 

Find the values of m so that the area equal to 1.

This is my problem. Calculate the area contained between the graph of the function y = (x-m^2)/(x+1) (m<>0), x-axis and  y - axis.

And my answer m = sqrt(exp(1) - 1) and m = -sqrt(exp(1) - 1).

But i can not calculate by Maple. 

In fact, m <>0, but when i input 

int((x-m^2)/(x+1),x=0..m^2)  assuming m <> 0;

I got Warning, unable to determine if -1 is between 0 and m^2; try to use assumptions or use the AllSolutions option

 


In fact, m <>0, but when i input 

int((x-m^2)/(x+1),x=0..m^2)  assuming m <> 0;

I got Warning, unable to determine if -1 is between 0 and m^2; try to use assumptions or use the AllSolutions option

 


First 6 7 8 9 10 11 12 Page 8 of 13