Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

hi, i need help with some maple code.

i want to evaluate a function at a number of points from a set (i have done this using a loop), and then sort the resulting values in a set (done with the inbuilt sort function), and finally convert the sorted results back to their original values so i can establish which values give the highest and lowest function values.

if i use the solve function, i get more than one solution for each function value, but i only want the specific original value which led to that function value.

i hope this makes sense, thanks for any help!

The first question: Is it possible in a procedure to combine datatypes ie

zz:=proc( X:: Matrix(datatype = [integer[2], float[8], float[8] ] ))

The second question :  If we assume that q is a floating number is convert( q, rational)  the
best way to convert a float to a integer ?

I have a simple loop and a couple of questions

a:=1:
n:=30:
for i from 1 to n do
   a := nextprime(a),i:
od;

Why didn't the colon supress the output?  And how do I get the output in the form i,a ?  I tried what I thought might have worked i,a:=nextprime(a):

I found in the Advanced Engineering Mathematics we have the statement: qq3 := map(int,qq2,x)+(0=a); 1 - ln(2 y(x) + 1) = ln(x) + a 2 which integrates the expression qq2 and then adds a constant. What does (0=a) mean and why does it differ from just adding a? Whenever I try and use it I get this: > int1 := (2*x^2+4)*sin(x): > ans1b := map(int, int1, x)+(0 = c); -(2/3*x^3 + 4 x)*cos(x) = c - (2/3*x^3 + 4 x)* cos(x)

Hi, I've performed a for/while/do loop in Maple 12 and have generated a list of twenty solutions. Now I'd like to sum these solutions and I have no idea how to do this or if it's possible. I'd really appreciate some help, thanks.

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!

First 1862 1863 1864 1865 1866 1867 1868 Last Page 1864 of 2233