MaplePrimes Questions

Could someone please help me with this procedure please. Testing weather numberss are prime of not.

restart:
Miller_Rabin:=proc(a,n)
local minus1, d, test,r,p,q,i,w:
minus1:=n-1:
d:=minus1:

while ((d mod 2) = 0) do
d:=d/2:
end do;

test:=Power(a,d) mod n:
r:=minus1/d:
p:=ifactor(r):
q:=op(2,p):
for i from 0 to q do
w:=a^(2^(i)*d) mod n:
od:

if (test = 1) and ( w = minus1 or w = 1) then

1) -How do i write a " do " loop to store the sequence [1, 5 , 10 , 15 , 20] in a 1-dimensional array in maple ??

and one more question please

2)-how do i write a pair of nested " do" loops to store the following 4x4 array in Maple :

Hi, I'm trying to solve a kinetics system of equation and I keep getting this error. Could anyone help me figure out what I'm doing wrong? > eq1; {diff(A(t), t) = -0.1e-1*A(t)*B(t)^.5, diff(B(t), t) = -0.1e-1*A(t)*B(t)^.5}; print(`output redirected...`); # input placeholder / d 0.5 d 0.5\ { --- A(t) = -0.01 A(t) B(t) , --- B(t) = -0.01 A(t) B(t) } \ dt dt / > ic := {A(0) = 1.0, B(0) = 3.0}; print(`output redirected...`); # input placeholder

Hi, I am new to maple. I have written a program to work out every combination of different sets of numbers. It runs a procedure on each different combination and then finds the smallest value . I'd be grateful if somebody could tell me how to get maple to return me the values corresponding to the minimum of the output values.

Summary

Hi, MY problem below is basically like this: I have a grid and need to plot points on it. The color of points depend on another parameter x. So, if x=
Hi, I have a grid given by :

How to find functions

 

F(x) = f(x) / g(x)

G(x) = f(x) * g(x)

 

so that the third derivative of F(x) and G(x) = 0.

d^3F(x)/dx^3=0

Hello, i was hoping someone would be able to help with a couple of questions im struggling with.

I need to use the syntax for the determinant to determine if the equation below has a unique solution? Ive got another 2 lots of 3 equations that require the same answer but im not really where to start.

 

2x+3y-z=2

-x+y+2z=2

x-4y+z=0

Any help would be appreciated.

Hi,

i got some problems trying to run the example test.java. I have Maple 13 on a ubuntu machine.

for your info:

$MAPLE=/home/thomas/maple13
$LD_LIBRARY_PATH=/home/thomas/maple13/bin.IBM_INTEL_LINUX


Now the problem:

Compiling the java file works, but when I try

java -classpath "$MAPLE/java/externalcall.jar:$MAPLE/java/jopenmaple.jar:." test

this exception appears:

Error loading libraries: java.lang.UnsatisfiedLinkError: no jopenmaple in java.library.path
 

Hello

I don't know how to tell maple to approximate automatically all the results, for just not having to do right click->approximate

Thanks in advance!

Hi all,

I've been using Copernic Desktop Search for a long time now.  It's the perfect tool for me when I want to find files that contain specific words.  But now that I have more than 1 gig of files with extension *.mw (and all the others that come with other version of Maple), I am in the need to find a way to search in thoses files.


I have this Maple code that calculates the Sharpe ration= Expected return portfolio / Standard deviation return portfolio
for a pair of stocks by using permuations [ stock[i], stock[i] ]. Each stock shows up the permuation list twice first in
[ here, not here ]  and  [ not here, here ] so I just itterate over such permuation list and take a long position in the
first stock ( +1*return) and a short position in the second stock (-1*return). So I get the Sharpe ration for all

Hi all I'm using a set of parameters, such as {a=1.b=2,c=3} to do various manipulations of an ODE system. Then later I want those parameters to be assigned their respective values, but I'd rather not have to do a:=1;b:=2;c:=3 Is there a way to do that ? Thanks LR

Dear All:

  I have type such expression in maple 2D Input

L[out_inductor] := 8e-6;

The result shown as L[out_inductor] := 0.80e-5; but if i change the numeric formatting to scentific, the result style change as below: 8.00*10^(-6) , the variable name L[out_inductor] missed in 2D output , it still disppeared even i change numeric formatting to none.

so i want to need some help me, how can i let variable name L[out_inductor] show in 2D output when the numerric formatting is scentific.

This problem has ocurred a few times and is quite troublesome.
First 2048 2049 2050 2051 2052 2053 2054 Last Page 2050 of 2434