Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hi,

 

Lets say we have some expression like

0.5* t^5 * r^-1 *V

 

is there some way in maple to determine the power of the variable t ?

My goal is to realize a procedure [lets call it PowerOfT() ]  , so that

 

PowerOfT( 0.5* t^5 * r^-1 *V) = 5

 

Thank you very much for your help.

 

 

I want to translate my maple code with matrice multiplication  to C code. But the command  "Multiply" cannot be translated. So I want to edit the function translation by myself. I use "AddFunction" command to create a new function  "Multiply" and want to specify its corresponding C code.

 


f := proc ()
local x,y;
x := Matrix([[1, 2], [3, 4]]);
y := Matrix([[1,3],[4,2]]);
Multiply(x, y);
NULL;
end proc;

LanguageDefinition:-Define("NewC", extend = "C", AddFunction("Multiply", [Matrix,Matrix]::Matrix,
proc (X, Y)
local a,b;
a := 2;
b := convert(a, string);
Printer:-Print("Mmultiply(", X);
Printer:-Print(",", Y, ")"); Printer:-Print("\n");
Printer:-Print("from", b, "to");
Printer:-Print(",", Y, "do") end proc, numeric = double));
Translate(f, language = "NewC")

 

But when I run it, the "Multiply" function cannot be translated.  The result is:

 

Warning, type signature [CodeGeneration:-Names:-ArrayType(integer,CodeGeneration:-Names:-ArrayRanges(1 .. 2,1 .. 2),CodeGeneration:-Names:-ArrayOptions()), CodeGeneration:-Names:-ArrayType(integer,CodeGeneration:-Names:-ArrayRanges(1 .. 2,1 .. 2),CodeGeneration:-Names:-ArrayOptions())] for function Multiply is not recognized
void f (void)
{
  int x[2][2];
  int y[2][2];
  x[0][0] = 1;
  x[0][1] = 2;
  x[1][0] = 3;
  x[1][1] = 4;
  y[0][0] = 1;
  y[0][1] = 3;
  y[1][0] = 4;
  y[1][1] = 2;
  Multiply(x, y);
  ;
}

I don't know why "Multiply(x,y)" cannot be translated.

If I put two "Multiply(x, y)" in the procedure, like this:


f := proc ()
local x,y;

Multiply(x, y);
x := Matrix([[1, 2], [3, 4]]);
y := Matrix([[1,3],[4,2]]);
Multiply(x, y);
NULL;
end proc;

LanguageDefinition:-Define("NewC", extend = "C", AddFunction("Multiply", [Matrix,Matrix]::Matrix,
proc (X, Y)
local a;
a := 2;
b := convert(a, string);
Printer:-Print("Mmultiply(", X);
Printer:-Print(",", Y, ")"); Printer:-Print("\n");
Printer:-Print("from", b, "to");
Printer:-Print(",", Y, "do") end proc, numeric = double));
Translate(f, language = "NewC")

THe result is:

Warning, cannot resolve types, reassigning x's type
Warning, cannot resolve types, reassigning y's type
Error, (in CodeGeneration:-IssueError) type 'Matrix' cannot be translated to target language

I don't know why type 'Matrix' cannot be translated.

 

 

how to customize/invert the foreground/background color scheme in Maple?

 

The black on white is killing my eyes and also wasting energy, white on black is much better on the eyes and conserves energy (pixel brightness), imho

 

thanks in advance!

 

 

Hello!

I performed a calculation where the output was a matrix that Maple said was too big to display explicitly. So, this output was just a summary. Specifically, something like this:

 

 

How can I save/export the data inside it to another matrix so that I can manipulate it while staying within Maple?

 

I can export to an external file using

and then reimport the data back into Maple. But this is cumbersome.

I can also see the data on my screen by double-clicking on the matrix. But I haven't been able to manage to copy & paste it within Maple or transfer it to another matrix so I can manipulate the data. How do I do this? I'd like to stay within Maple to avoid the hassle of exporting data to Excel & then reimporting it.

Thanks,

Damian.

given the following:

param:= {mu[2] = (1600), mu[4] = (1500)}
R := unapply(1/(1+exp((1/50)*x)), x);

prior := evalf(expand(eval(eval(R(abs(mu[4]-mu[2])), `` = (x->x)), param)));
   

I need to keep the paramaters encapsulated. I would like this last step to output the answer 0.1192029.... but the abs function doesn't let me

Hello I download maple2015 today but I dont know how can I work with it ?  how can I write math phrases?

Please help me soon!!!!

Maplesim 7.0(1) installer looks for Maple 18 installation.  Will Maplesim work with Maple 2015?

If not, what is the expected date of making both products compatible?

Regards,

G

Hello to everyone,

I want to solve the following inequality:

solve(b^4-(2-d)*b^2-2*d*b+1+d > 0, [b]), where b is my variable and d is a pamater in (0,1]. 

When I try to sovle this I get a message "Warning, solutions may have been lost" and from the official maple website they suggest to reformulate the problem.

Is there anything I can do to solve the above inequality?

 

Thanks in advance!

hello,

when i type a code to display an image of a function, maple just outputs my code in blue...what is that mean?

 

thank you

In the (r,t) polar coordinates, the graph of the equation r = 1/cos(t) should be a straight vertical line segment but Maple produces junk.  What is going on?

plot(1/cos(t), t=0..Pi/3, coords=polar);

The parametric version

plot([1/cos(t), t, t=0..Pi/3], coords=polar);

produces the same thing.

integral.mw

 

Hi all, I want the best for you.

I really have confused with this bad integral (HeunB)which I've got it 2 weeks ago from a solution by Maple 17. I should solve this one to solve the derivative of this too.

 

Help me please, I attached the attribute file.

Regards.

Application of the properties of real numbers such as divisible factors, quantity and sum of prime divisors, DCM and MCM among others. All the technology embedded components of Maple.

 

Propiedad_de_los_Numeros.mw

 

Atte.

L.AraujoC.

 

 

 

I have sum representation,

N:=3

 

I tried evaluating at t = 0 or t = 1, it does nothing when I entered f(0)[2]; it returns

 

 

I have a big system, so the loop is necessary for the assignment.

hi friends

i have a problem in maple with an error

> Us:=subs(G=1,m=1,L=1,U):
> D2r:=[diff(x(t),t,t),diff(y(t),t,t),diff(z(t),t,t)]:
> g:=subs(x=x(t),y=y(t),z=z(t),grad(Us,[x,y,z])):
> IniC:=x(0)=1,D(x)(0)=0,y(0)=0,D(y)(0)=1,z(0)=3/4,D(z)(0)=0:
> Ns:=dsolve({seq(D2r[i]=g[i],i=1..3),IniC},{x(t),y(t),z(t)},numeric);

after this i see :

Error, (in f) unable to store 'grad(U, [1., 0., .750000000000000000])[1]' when datatype=float[8] 

meaning it can only store 8 byte hardware floats.
Is this statement true? And how can i solve this problem? Or could/should i use a different data type?

Thanks for your time

Best regards

Hi,

I want to draw a solid that lies under z=4+x^2-y^2 and the base is bounded by -1<=x<=1 and 0<=y<=2.

I tried the following, but does not look nice. The plane x=1 is outside of the surface boundary. I also used the range as -1<=x<=1.01, otherwise I can't see the plane.

Thanks for helping.

First 1261 1262 1263 1264 1265 1266 1267 Last Page 1263 of 2228