MaplePrimes Questions

Hi!

 

Can anyone help me to write code that validates an answer to a equation of the sort a*x^2=cx.

There will be two solutions to the given equation and I don't know how to write it so it takes in and separates the two answers from the student and validates them.

 

Best

 

Mats

 

Hello everyone.

When exporting by an multibody attachment, the name of the variables exported from a revolute or translational joint, are set by default, like "s_P2(t)", "theta_R", etc. If I wanted them to be named "x(t)",... , what will I have to do?

Is it possible to do directly, without using an alias?

Hi,
Consider the following DEQ:

x*y'+2y=1

Maple can solve this without problems with dsolve. But I want to use the Mellin Transformation for this, similar to the more common laplace transformation. The last step, the transformation back to the x-domain, does not work. Any idea why?

restart:with(inttrans);
mellin(x*diff(y(x),x)+2*y(x)=1,x,s);
solve(%,mellin(y(x),x,s));
invmellin(%,s,x);

 

Thanks

Dear Maple Users

I have encountered some strange behavior when trying to copy a vector:

In the first section I define a vector a and try to copy that vector and assign it to an variable b. Then changing the first coordinate in the copied vector b actually change the original vector as...

main.mw

Please, start attach from beginning till that place where 

Is this the best way to extract the argmin with "minimize"? Thanks for your suggestions.

minimum := minimize( x^2, x = -1 .. 1, 'location' = true );
y_min := minimum[1];
x_argmin := rhs(op(op(minimum[2])[][1]));
                       0, {[{x = 0}, 0]}
                ...

Code
 

L:={NULL}:
for q from 11 to 100
check:=0:
for p from 1 to 200
n:=length(p):
for i from 1 to n
a[i]:=p[i]:
s:=sum(a[i],i=2..n)
if p-a[1]-10*s*modq=0 then
check:=check+1:
if check=200 then
L:=L{op(L),q}:
print(L);

and the pseudocode:
1. L is the empty set
2. for q from 11 to 100
3. check=0
4. for p from 1 to 200
5. find n, the number of digits of p
6. for i from 1 to n
7. find a[i], the ith digit of p

Dear,

How could we know which command to use to do a specific task such as:  "convert boolean value to {1,0}" . I know we could use evalhf() but if we search with keyword "convert true false to 0 1 " in the Maple help then we may not find the right command

Using the Online Help is a solution but I want to know an offline solution since I am not always with the Internet. Did anyone wrote a summary sheet with the content such as : (i.e a list of all commands with keywords for searching)

Ok, this mut have been asked a million times, but for the heck I cannot find how to do it:

I have a data file with many columns of data, delimiited, and many rows. I can read this in with ImportMatrix no sweat. The generated matrix has (row,column) format, i.e. matrix[1] is row 1 etc.

Now I want to plot two arbitrary columns against each other, say matrix[][19] vs matrix[][13] (the 19th column vs the 13. column). The data are monotonic in each vector so I can...

Hi.

I have defined a function "norma" that calculates the normal vector in a point "r" in a given surface:

norma:=proc(l,r) local nu;

if r[1]>= l/2 then nu:=[r[1]-l/2,r[2]];

elif r[1]<=-l/2 then nu:=[r[1]+l/2,r[2]];

...

Now I need to calculate an integral using this function varyign the parameter "r" but I get this error message:

> int(norma(l,[cos(x), sin(x)]), x = -1.5768 .. -.5638);
Error, (in norma) cannot...

I'm using Maple 15 with Suse Linux 11.4

Export to latex produces a tex file which, when conveted by pdflatex contains all sorts of errors. The page margins are very large, parts are missing, the title appears alone on a page, lists of equations don't have line breaks so, for a long list you find just the central part going from edge to edge of the page.

I gave up using "Export to latex" on earlier versions. I had thought that Maple 15 might be better, but it seems worse.

Hi,

Q1) Could you pls tell me how can I show in maple the curve (x^2+y^2)^2=x^2-y^2 in the form of

x(t)=cos(t)/1+sin^2*t and y(t)=sint*cost/1+sin^2*t.

Q2) how can I express sin^2(4x) in terms of powers of cosx.

a) cos^3(3x)cos(5x) as a linear combination of cosines of multiples of x.

how can i solve matrix ?

for example :

Matrix(4, 4, {(1, 1) = 18, (1, 2) = -45, (1, 3) = 36, (1, 4) = -9, (2, 1) = 9, (2, 2) = -18, (2, 3) = 9, (2, 4) = 0, (3, 1) = 0, (3, 2) = 9, (3, 3) = -18, (3, 4) = 9, (4, 1) = -9, (4, 2) = 36, (4, 3) = -45, (4, 4) = 18})  

I have a module to overload the * operator for the function f such that:

a*f(b,c,d) = f(a*b,a*c,a*d)

FPackage :=  module()option package;    export `*`;    `*` :=    overload    (      [        proc(a::algebraic, b::specfunc(anything, f))          option overload;          map2(:-`*`, a, b...

Hi 

Could uou pls tell me how to do a parametric representation of the curve in maple where curve is define as

(x^2+y^2)^2=x^2-y^2 . Secondly how to plot this curve.

First 1803 1804 1805 1806 1807 1808 1809 Last Page 1805 of 2429