Kitonum

21485 Reputation

26 Badges

17 years, 55 days

MaplePrimes Activity


These are answers submitted by Kitonum

L:=[f(-6)=2400, f(-4)=432, f(-3)=120, f(-2)=16, f(-1)=0, f(0)=0, f(1)=-8, f(2)=0]:
M:=[seq([op(lhs(L[i])), rhs(L[i])], i=1..nops(L))];
CurveFitting[PolynomialInterpolation](M, x);
           M := [[-6,2400], [-4,432], [-3,120], [-2,16], [-1,0], [0,0], [1,-8],[2,0]] 
                                               2*x^4-6*x^2-4*x

I noted  the entries in lowercase instead of uppercase. Due to the associative law it can be counted easily:

A:=Matrix([[a, b], [c, d]]):
B:=Matrix([[0], [1]]):
(A^6).B;

 

To solve these problems, use Mathematica rather than Maple:

Reduce[{0 < 2*f[1], 5 < f[1] + f[2], 8 < f[1] + f[3], 
f[1] + f[4] == 7, 0 < 2*f[2], f[2] + f[3] == 6, 6 < f[2] + f[4],
0 < 2*f[3], 11/2 < f[3] + f[4], 0 < 2*f[4]}, {f[1], f[2], f[3],
f[4]}]

                                         False 

The solution will be correct, if we write

solve({ a + b = 1, a > 0, b > 1/2}, {a,b,c})  assuming  c>0;

               {a = -b+1, c = c, 1/2 < b, b < 1}

Numbers  (-1) ^ (1/2 ) ,  (-1) ^ (3/2)  and so on - are some complex numbers. If you want them to have remained in that state, and not calculated to form  a+I*b (I - complex unit), you can write like this

sum(-y2*y3+8*(-1)^``((k-1)*(1/2))*sinh(y2*Pi*k)*sin(k*Pi*y3)/(Pi^3*k^3*cosh((1/2)*k*Pi)), k = 1 .. 10);

 

{p2=0.00251}, {p2=1.59454}: 

assign(op(%[1])):

p2;

           0.00251

You can plot the indefinite integral:

M:=10^8:
plot(int(x^2*exp(Pi*x/10^12*M), x), x = 0 .. 1000);

To better compare the graphics,  scaling=constrained option is used and the range on vertical axis is limited.

V:=(2*x^2+2*y+gamma)*y^3:

a0:=subs(x=0.9,gamma=0,V):

a1:=subs(x=0.9,gamma=2,V):

a2:=subs(x=0.9,gamma=4,V):

 

b0:=subs(x=0.1,gamma=0,V):

b1:=subs(x=0.1,gamma=2,V):

b2:=subs(x=0.1,gamma=4,V):

 

A:=plot([a0,a1,a2], y = 0 .. 1, 0..5, linestyle = [dot, dash,dot], color = [red, blue,green]): 

B:=plot([b0,b1,b2], y = 0 .. 2, 0..5, linestyle = [dot, dash,dot], color = [red, blue,green]):

 

plots[display](< display(A) | display(B) >, scaling=constrained);

a1:=plot(x^2,x=1..2): a2:=plot(x^2,x=3..4): a3:=plot(x^2,x=4..5):

b1:=plot(x^3,x=1..2): b2:=plot(x^4,x=1..2): b3:=plot(x^5,x=1..2):

a:=a1,a2,a3:  b:=b1,b2,b3:

A:=Vector([a]):

B:=Vector([b]):

with(plots):

display(< A|B >);

display(LinearAlgebra[Transpose](< A|B >));

P:=proc(L::list)

local M, F, Max, S, i;

M:=convert(L, set);

F:=[seq([M[i], ListTools[Occurrences](M[i], L)], i=1..nops(M))];

print(F);

Max:=max(seq(F[i, 2], i=1..nops(M)));

S:=[];

for i in F do

if i[2]=Max then S:=[op(S), i[1]]; fi;

od;

op(S);

end proc: 

 

Example:

L:=[3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,2,4,3,1]:

P(L);

      [[1, 1], [2, 1], [3, 13], [4, 4]]

                       3


What means your dual equality? The system of equations? If  only the first equation is acceptable and from the boundary conditions to retain only the first two, Maple finds the only one trivial solution. Assuming that Maple was right,  the initial boundary value problem has no solution.

dsolve({(diff(f(x), x))^2-f(x)*(diff(f(x), x, x)) = diff(f(x), x, x, x)-100*(diff(f(x), x))-0.001*(2*(diff(f(x), x))*(diff(f(x), x, x, x))-f(x)*(diff(f(x), x, x, x, x))-(diff(f(x), x, x))^2), f(0) = 0, ((D@@2)(f))(0) = 0}, f(x));

                                                                        f(x)=0

It is easy to prove that there are no such triangles in the plane. In space there are infinitely many such triangles. The smallest will be (3, 0, 0), (0, 3, 0), (0, 0, 3) . Its easy to find a simple search.

PS. It can be found without brute force if you know that in any cube, there are 3 vertices of the cube, forming an equilateral triangle.

A:=plot(sin(x), x=-Pi..Pi, color=red):
B:=plot(cos(x), x=-Pi..Pi, color=blue):

plots[display](Array([A, B]));

I think that we should not trust to the symbolic solutions of the equations with the parameters obtained with Maple. Here are two simple examples.

with(RealDomain):

solve(sqrt(x-a)=x, x);

solve(a*x^2-2*x+4=0, x);

Both answers are incorrect. The first equation has two solutions only in the range  0 <=a< 1/4 . For other values ​​of the parameter  a  there are no solutions or only one solution. This is easily seen by constructing graphs. 

The solution of the second equation is correct only for  a<>0  and  a<=1/4 .

Both equations can be correctly solved in the package Mathematica. Here, for example, the first example:

Your equation  3a(1+z)^2=2(a(1+z)^3+b)^(1/2)  with two parameters  a  and  b  is much more complex. You can correctly and  explicitly solve it in Mathematica by using commands

ToRadicals[
Reduce[3*a*(1 + z)^2 == 2*(a*(1 + z)^3 + b)^(1/2), z, Reals]]
The output is very cumbersome.

f:= A^2-2*sqrt(A^2+1)+1;

f2:= simplify(algsubs(A^2+1 = M^2,  f)) assuming M>0;

             f := A^2-2*(A^2+1)^(1/2)+1

                     f2 := M^2-2*M

First 269 270 271 272 273 274 275 Last Page 271 of 290