MaplePrimes Questions

Hello, this is probably a silly question but i am new to maple. I am constructing a loop but it does not accept complex numbers, for example:

 

for x from 1+I to 1+7I do;

x+I;

end do;

 

this is just a simple example, is there a way to do it like this or do i have to do something else?

 

Thank you very much

 

hi all,

swapping variables in the export line of a module changes its behavior.

First Example (works fine):

restart;
mp:= module() option package;
export mult, f2;
mult:=proc(v) return(3*v) end proc;
f2 :=proc(v) mult(v); end proc;
end module;

savelibname:="E:\\tmp";
savelib('mp');

restart;
libname := libname, "E:\\tmp";

with(mp);
mp:-f2(5);
mp:-mult(4);

# Output: [f2,mult], 15, 12

Hi all.

I was trying to perform a simple integration and convert the answer to a inverse hyperbolic function as follows:

int(9/sqrt(81*x^2-4),x);

simplify(%);

convert(%,arctrigh);

But the command convert fails to do the conversion. I should obtain arcosh(9/2*x)+c.   But the answer is in terms of the natural logarithm: ln(9*x+sqrt(81*x^2-4))

How do I manipulate the answer so that I can get the inverse hyperbolic answer?

Thank you for the answers

It is very helpful for me

if j_w a vector where elements are [1,5,3,10,2,1,0,4]

with the command "row, col, val := SearchArray(j_w);" I have all information about j_w. Iwant to get just the indices of nonzero where the values of j_w<=3 for example?

Best regards

Hi

In matlab we have this command:

I = FIND(X) returns the linear indices corresponding to the nonzero entries of the array X.

[I,J,V] = FIND(X) also returns a vector V containing the values that correspond to the row and column indices I and J.

Is there a command in Maple like "find" in Matlab

Thanks in advance

Hi,

I'd like to display a UNsimplified mathematical expression in a Mathcontainer component using a Button component. In Maple Help under Mathcontainer, it is writing that we can display a unsimplified expression using the value attribut. For example:

Do(%Mathcontainer0(value) = a^2*b/a);

should display the unsimplified expression in the Mathcontainer0 component. And

 Do(%Mathcontainer0(expression) = a^2*b/a);

In a Button, this command enables us to display in a Mathcontainer a Delta  (Delta). 

D(%Mathcontainer0 = 'Delta');

However, I want to display Delta y. (Delta y). If I write

D(%Mathcontainer0 = 'Delta y');

I am learning to use MapleSim to do my research.

and I should create a custom Component. Its function is:

there are two inputs s1 and s2, the output F=0 when s1=0, and F=s2 when s1=1.

I made a function like the figure as follows and the error occured

----------------------------------------------------------------------------------

I was very comfortable using printlevel with loops, conditionals and procedures in Maple 13, but recently upgraded to Maple 14.

The problem is that, regardless of printlevel, statements nested more than 1 from the top level of maple do not show. Oddly, this doesn't affect procedures or even nested loops inside procedures. The simple code here demonstrates the problem.

>restart;
>printlevel:=100:
>for i from 1 to 2 do
       for j from 1 to 2 do

Hi everybody,

I am using Maple 14 in document mode. Recently I encountered the problem with exporting polish special characters (like ąęćłóńśźż) into PDF file. Maple 14 just omits them. Why?

I use Maple in high school. My students deliver their homework created in Maple. Often this involves solving a number of exercises, say 7. Not all students are completely aware of how the Maple Engine works, so I tell them to put in restarts from time to time, at least when a new exercise begins. This prevents misunderstandings and loss of time which might else happen when calculations in one exercise interferes with calculations in the next exercise. One simple example...

This guy Giorges is using Python and wget inorder to do parrallel downloading
and he is arguing that it is very fast.

http://keramida.wordpress.com/2010/01/19/parallel-downloads-with-python-and-gnu-wget/


Now my questions become

1) Does there exist a simple way that I can use wget without installing it ?
I dont want to bother users of my Maple application with installing a 3:rd party software.
A simple file in a specific location would be ok though

How can I display 2 followed by 1 single animation?

ie

a:=animate(...)
b:=animate(...)
c:=animate(...)

I can animate all 3 in sequence with display((a,b,c),insequence=true)  or I can animate them all at once.  But how can I animate two at once followed by the 3rd animation?

I tried

h:=display(a,b)
g:=display(c)

gg:=dispaly((h,g),insequence=true)    Which I thought might have worked however that produces multiple frames.

Whilst I am glad that Maple have finally fixed their pdf and eps plot output with version 13 (corrupted on the Mac since version 10), I would like to re-ask the question asked by peterschmid 4 in 2006: how can I control the output size of the plot?  The plotsetup options axiswidth, axisheight, width, height, appear to have no effect.

Please note that I use Maple for academic publishing, and I wish to automatically generate graphs and export them as eps files....

I want to plot this graph with maple. http://img843.imageshack.us/img843/5300/graphh.jpg The lines are: a) x=2t+3; y=5t-2; z=-t+1 b) x=-2t+7; y=t+8; z=2t-1. I tried to plot the first line with spacecurve, but I don't now how to plot the two lines together.Also I couldn't plot the z axes in the vertical position. spacecurve([2*t+3,5*t-2,-t+1],t=-10..10,axes=normal, labels=[x,y,z],scaling=constrained); Is there a way to find and represent on the intersecting...
First 1962 1963 1964 1965 1966 1967 1968 Last Page 1964 of 2434