gkokovidis

2335 Reputation

13 Badges

20 years, 298 days
Draeger Medical Systems, Inc.

 

 

Regards,
Georgios Kokovidis
Dräger Medical

MaplePrimes Activity


These are answers submitted by gkokovidis

The Im command only returns the constant part in front of the"I", so what you see is corect.  In your specific example, the constant in front of the "I" is 1/2*2^(1/2).

As another example, try Im(I).  Maple will return 1 as the answer.  Again, the "I" does not get displayed.

 

Regards,

Georgios Kokovidis

Dräger Medical

See an explanation of why you are getting a non-real answer here.

To use 'surd' with functional notation, you can do it like this.

restart:

f:=x->surd(x,3);

    (1)

f(-8);

                          (2)

 

Download CubeRoot.mw

Regards,

Georgios Kokovidis

Dräger Medical

This link has a worksheet that is similar to what you are looking for.

 

Regards,

Georgios Kokovidis

Dräger Medical

Can you post your worksheet?  What is else do you have ahead of this?  Cutting and pasting the code where you show an error gives me a plot.

 

restart:with(DEtools):

deqn := diff(x(t), (t$2)) = -2*(diff(x(t), t))-25*x(t);

DEplot(deqn, x(t), t = 0 .. 10, [[x(0) = 1, (D(x))(0) = 0]], stepsize = .1, linecolor = blue, thickness = 1);

 

 

 
   

 

Download deplotprob.mw

 

Regards,

Georgios Kokovidis

Dräger Medical

The code below will export a jpeg to currentdir, which for me is C:\EngineeringApps\Maple14

You can set this to whatever makes sense for you.  ?currentdir and ?plotsetup for more help on this.  The last line resets the plot setup to the original ouput device (screen).

currentdir();
                  "C:\EngineeringApps\Maple14"

plotsetup(jpeg,plotoutput="plotexport.jpg");
plot(2*x^2+3*x-4,x);
plotsetup(default);

Regards,

Georgios Kokovidis

Dräger Medical

Here is an example that you can modify using your functions.  See the help page for ?piecewise for more details.

p := piecewise(x < 0, sin(x), 0 < x and x < 2*Pi, cos(x),x>2*Pi, 2);

plot(p);

 

Regards,

Georgios Kokovidis

Dräger Medical

See the help page for the dsolve command with initial conditions.  There are examples there that you can modify for your own equation.

?dsolve/ics will get you there.

 

Regards,

Georgios Kokovidis

Dräger Medical

How about this?  ?reflect for the help page.

restart:with(plottools):

plot(x^2,x=-1..1,y=-1..1);

 

p:=plot(x^2,x=-1..1,y=-1..1):

reflect(p,[[-1,0],[1,0]]);

 

 

 

Download reflect.mw

 

Regards,

Georgios Kokovidis

Dräger Medical

See if the link below answers your question. 

http://www.mapleprimes.com/questions/42659-Reverse-Yaxis-Direction

 

Regards,

Georgios Kokovidis

Dräger Medical

Not with the current version (14).  I also tried it with version 9.51 and it returned unevaluated.  No assumptions were made about a and b.

 

restart:

int((1/sqrt(2*Pi))*(1/(1+exp(x)))*exp(-(1/2)*((x-a)/b)^2),x=-infinity..infinity);

(1)

 

 



Download uneval_int.mw

 

 

Regards,

Georgios Kokovidis

Dräger Medical

I do not see any attachments.  It the example below similar to what you are doing?

 

restart:

with(CurveFitting):

f:=x->Spline([[0, 0], [1, 1], [2, 4], [3, 3]], x);

(1)

g:=x->1/f(x);

(2)

plot(f(x),x=0..5,y=0..8,thickness=2);

 

plot(g(x),x=0..5,y=0..8,thickness=2);

 

 

 

Download splineplot.mw

 

 

Regards,

Georgios Kokovidis

Dräger Medical

Look at the help page for ?StringTools[CharacterFrequencies] to get you started.  Look at some of the other help pages, and do a search on the web.  Please do not ask others to do your homework for you.  Show what you have done, and what you are having trouble with.  Then you might get some help.  Otherwise, ...

 

Regards,

Georgios Kokovidis

Dräger Medical

This might be a bug.  Maple does not like improper transfer-functions, where degree(num) > degree(den), or the numerator in "s" being an order higher than the denominator, regardless of denominator value.  For example,

restart:
with(DynamicSystems):
sys1 := TransferFunction(s):PrintSystem(sys1);

gives, Warning, improper transfer-function, degree(num) > degree(den)

Even if you were to convert (k*s^2/(s+20))  to  (k*s-20*k+400*k/(s+20)), you would get the same error in your example. 

Try using block diagram reduction equations in Maple directly and then plugging the output into your system.

 

restart:

a:=(10/(s*(s+10)));

(1)

b:=(k*s^2/(s+20));

(2)

tfsyspos:=a/(1+a*b);

(3)

simplify(%);

(4)

tfsysneg:=a/(1-a*b);

(5)

simplify(%);

(6)

 

Download tfsys.mw

 

 

Regards,

Georgios Kokovidis

Dräger Medical

Another way to test equivalence using evalb.

restart:

a:=(x+3)^2*(x-4);

           (1)

b:=x^3+2*x^2-15*x-36;

 (2)

expand(a)-b;

                                                         (3)

evalb(expand(a)-b=0);

                                                   (4)

 

 

Download evalbpoly.mw

 

Regards,

Georgios Kokovidis

Dräger Medical

Look at the help page for the ?isolate command.

 

Using one of your equations from above:

isolate(v=L*(iM-im)/Ton,im);

          im = -v*Ton/L+iM

 

Regards,

Georgios Kokovidis

Dräger Medical

First 19 20 21 22 23 24 25 Last Page 21 of 75