MaplePrimes Questions

Hi

I am trying to optimize a 39, 1 MATLAB matrix, but cannot seem to get a result beyond a 6, 1 matrix. I am getting "Warning, cannot resolve types, reassigning t##'s type" where t## varies from each time I run it, and can show multiple of these warnings. It also says "Warning, cannot translate list".

 

I found a pretty similar problem posted here earlier, where the user "Carl Love" suggested to replace a command from the original code with

Matlab(
     subsop([-1,1]= J, eval([codegen:-optimize](tmp, tryhard), pow= `^`)),
     output = string, defaulttype = numeric
);

 

I was wondering what exactly this command does? Can I apply it to my code to solve my problem? It yielded a result that looks (on the surface) as an optimized code, but I don't feel completely comfortable using it without being certain.

What I have done is simply to replace Matlab(tmp, optimize) with the suggested code above. My code is attached. Thanks in advance for any help.

OptiMatrix.mw

Hi,

I'm, trying to write a nested loop in maple, but I keep getting the Unterminated Loop error. I'm sure the solution is quite simple, but I haven't been able to find it. Any suggestions would be much appreciated. The loop looks like this:

 

i:=0:
di:=25:
n:=1:  

while (n<=nLimit) do
sol1:=fsolve(eq1, y=i..i+di)
     if type(sol1, numeric) = true then
     lambda(n) :=sol1
     i:=i+di
     n:=n+1
     else  i:=i+di
     end if:
end do:

Just wonder if there is a way to have maplesoft.com not think I'm in Germany. On my computer, iPad, and iPhone the website reverts to German language. My locale is west coast US. And I often search the website to learn more about using Maple. 

It's not a big issue, but if there is a way to have it remember English, I'd like to know.

 

Cheers, all !

hello everyone..

please...

I need help to write a code to calculate the riemann sum approximation of the curve cos(sqrt(x^2+y^2)+1 

calculate the actual volume using integration

use the ranges x=[-2pi to 2pi]=y, and 20 subdivisions.

also display the curve and the parallelepiped approximations on the same plot.

 

Thank you for your help!

hi everyone,

i need help to write a maple code to generate an animation sequence showing the taylor series approximation of tan(x) from 

N=1..5.

plot the animation from x=-2pi to 2pi and y=-5 to 5.

 

thank you for your help..

hi everyone,

I need help writing a maple code to calculate the normal to the curve X^2-2X at x=1

and also display the curve, the tangent, and the normal on the same plot in the range x=[-2,2].

 

thank you for your help!

is it possible to use an animated zoom on a pointplot?

I used the view option (view = [-t .. t, -t .. t]) and animated the t value in a sequence, but it did not work.

kind regards,

Harry Garst

 

I have the following characteristic equation by use of maple. How do I find a condition on x, that will return real eigenvalues and complex eigenvalues?

 

 

 

Hi!

Most of the worksheets in the maple application center with embedded components do not allow the implicit codes to be seen. Right clicking on the component property (edit click action) does show the codes.

Can anyone please tell me how to have access to these codes in other to see the interaction between the different components (table, plot, bottoms,etc)? Thank you very much.

John.

Hello everyone!

I'm pretty new with Maple. I think I've understood the way Maple handles differentiation fairly well, but upon a specific request from my PhD tutor I have to perform a task which is giving me a hard time. 

My question is: is in any way possible to express a derivative of a function or expression in terms of the function itself?
I'll try to explain myself with an example: let f(x) and f'(x) be the function and its first derivative:

Instead of expressing f'(x) in the way shown, I'd like to express it as a function of f(x), such as in the following:

I would apply the same process to the higher order derivatives, if possible.

A huge thank you to whoever will help me!

The physics package is pretty awesome, but one thing that would be a big help is some functionality for entering and resolving vectors in angle/magnitude format (50 angle 45 degrees, or what have you.) Is there a way to do this?

 

Thanks

 

Joe

Hello,

I have 20 by 20 matrix (with only two symbolic components, say a and b), other entries of the matrix are either populated with zeros or real numbers. I am trying to obtain the inverse.

 

All the command I have tried returned an error message. In particular M^(-1) yields:

Error, (in radnormal/ifactors) too many levels of recursion.

 

I would appreciate any suggestion that could solve this issue. Thank you

 

ps: I am essentially trying to solve Ax=b. The commands within LinearAlgebra all yielded similar error messages.

Hello,

 

I tried to write a code for CRT-RSA. The encryption is kinda easy and like the normal RSA:

Public key given: (e,N)=(5,851); private key: (d,dcp,dcq,p,q)=(317,29,9,37,23)

with the result:

                      [116, 101, 115, 116]
                       [676, 645, 144, 3]
                      [100, 70, 715, 243]

So, know i tried the following:

that also works pretty fine; dcp and dcq are the CRT-RSA-exponents, and gives:

                        [10, 16, 33, 3]
                          [9, 1, 6, 3]

So now my try for the next step:

but it doesnt work...

the results are:

 

Why does Maple take the whole vector for y? I dont get it....

 

Note: if d<sqrt(N), then d=dcq=dcp and the Decryption of normal RSA can be used:

therefore the line:

works as decipher1 already.

 

 

So thanks for any help!

Hi, My name is mohammed and I am a P.h.D student . I am a new user with Maple . I had two questions

First one : How can I execute a number of commands by using worksheet or document mode ? can any one  provide me an example?

Second : How can I measure the time for a number of command? can any one provide with syntax of the command?

First 1306 1307 1308 1309 1310 1311 1312 Last Page 1308 of 2434