gkokovidis

2370 Reputation

13 Badges

20 years, 291 days
Draeger Medical Systems, Inc.

 

 

Regards,
Georgios Kokovidis
Dräger Medical

MaplePrimes Activity


These are answers submitted by gkokovidis

You can use grep to do this, on Windows and Linux.  It is not limited to "Maple" doc's

 

Regards,

Georgios Kokovidis

Dräger Medical

Without looking at your system, it is hard to say.  Take a look here for a meaning, and a possible solution.

 

Regards,

Georgios Kokovidis

Dräger Medical

Alec's suggestion is the preffered method.  But, your statement about linsolve in Maple 14 not working is not accurate.  The example below is done with Maple 15.  It works in v14 as well.

From the help pages:

Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

restart:

with(linalg):

A := Matrix(2, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 1, (2, 2) = 3});

                               (1)

b := Vector[row](2, {(1) = 1, (2) = -2});

                            (2)

linsolve(A, b);

                                     (3)

 

Download linalg.mw

 

Regards,

Georgios Kokovidis

Dräger Medical

I might be understanding the question differently than Doug.  I see "y" being fixed, and all "x's" that satify this fixed value of "y" being solved for.  If this is the case, then ?solve needs to be used.  Otherwise, use Doug's method above.  In the example below, "y" is chosen with values that vary from 1 to 3, and all "x's" solved that satisfy the given value of "y".  If only 1 value of "y" is needed, then ?seq can be dropped. This is my interpretation of the question.
 

restart:

eqn:=x+x^2=y;

(1)

ans:=[solve(eqn,x)];

(2)

seq(ans[1],y=1..3);

(3)

seq(ans[2],y=1..3);

(4)

 

Download solve.mw

Regards,

Georgios Kokovidis

Dräger Medical

Try the ?collect command, and see if it works for your equations.  

restart:

p:=expand(3*x^2 + a*x + a*x^2 + a^2*x+3*x+b*x);

    (1)

ans:=collect(p,x);

      (2)

coeff(ans,x);

                                                            (3)

coeff(ans,x^2);

                                                                                 (4)

 

Download coeff.mw

 

Regards,

Georgios Kokovidis

Dräger Medical

See link here.  You can cut and past it into a new worksheet to see what it does.  As stated in the link, this is not a very good method.  See article here.  Axel's approach above would be a better way to do this, especially if the data source adds an element of noise.

 

Regards,

Georgios Kokovidis

Dräger Medical

The problem seems to be with the "filled" option, in the plottools command for the ellipse.

As a potential workaround, change:

sit := seq(ellipse([-1.8+(1/10)*t, 1.9], .4, .1, filled = true, color = black), t = 0 .. 100):

to

sit := seq(ellipse([-1.8+(1/10)*t, 1.9], .4, .1, color = black, thickness = 5), t = 0 .. 100):

and see if the animated plot is acceptable to you.

This will also work for your Little test, just change it to:

display([arc2, siege]);

 

Regards,

Georgios Kokovidis

Dräger Medical

Try using square brackets in your display command, and see if that gets you there.  It seems to work for the attached.

restart:with(plots):

F:=plot(cos(x), x=-Pi..Pi, y=-Pi..Pi, style=line, thickness=10, color=red):

G:=plot(tan(x), x=-Pi..Pi, y=-Pi..Pi, style=point, color=blue):

display([G, F], axes=boxed, scaling=constrained, title=`Cosine and Tangent`);

 

display([F, G], axes=boxed, scaling=constrained, title=`Cosine and Tangent`);

 

 

Download displayorder.mw

 

 

Regards,

Georgios Kokovidis

Dräger Medical

Try rewriting your equations like this.  Avoid using square brackets to express your equations.

restart:
solve({gama2*q2 - 2*gama1*XA=0,-q1 + 1 - 2*q1- C=0, -q2 + 1 - 2*q2 - C + gama2*XA=0},{gama1,gama2,C});

 

Regards,

Georgios Kokovidis

Dräger Medical

The exponential function, exp(x), calculates the value of e to the power of x, where e is the base of the natural logarithm, 2.718281828... .

restart:

?exp

evalf(subs(x=-2,diff((sin((x^2)/(x^4+1))*exp(2*x)),x$10)),10);

                                                                                              (1)

 

Download expdiff.mw

Regards,

Georgios Kokovidis

Dräger Medical

See the help page, and take a look at the first example.  ?geom3d[sphere]
Use

point(A,- 8, 3, 11), point(B,5, - 7, 1), point(C,- 15, 4, - 6),point(Dd,10, 2, 9);

for your points

and

sphere(s, [A, B, C,Dd]);

to get the equation.  The rest of what you need is in the help page.

The last point was changed to Dd, instead of D, because D is proteceted in Maple.

Try this and see what happens.  If you are still having trouble, upload your worksheet, or cut and

paste what you have tried that is giving you trouble.

 

Regards,

Georgios Kokovidis

Dräger Medical

Start by browsing existing worksheets in the Application Center.  Download them, execute them, study them, make changes, re-execute to see what happens. 

One such worksheet is here.

 

Regards,

Georgios Kokovidis

Dräger Medical

Download and execute the following worksheet.  You can execute it by clicking on the 3 !!! marks on the top toolbar.  The examples are similar to yours.  One more thing.  In Maple, The number Pi is represented by Pi (not pi).

 

Regards,

Georgios Kokovidis

Dräger Medical

The following worksheet is from the Maple Portal.  You might find it useful.

Regards,

Georgios Kokovidis

Dräger Medical

On a Windows XP machine, with your filename saved on the Desktop, the following will work.  You have to modify the path to match your exact path.

restart:

with(ImageTools):

Read("c:\\Documents and Settings\\kokoge00\\Desktop\\examplemaple.jpg");

(1)

View(%);

 

Download ImageRead.mw

 

Regards,

Georgios Kokovidis

Dräger Medical

First 17 18 19 20 21 22 23 Last Page 19 of 75