MaplePrimes Questions

Hi, I am trying to figure out how to find the maxima and minima of the function f(x)=(x^3-10*x^2-2*x+1)/(4*x^3+5*x+1) and its derivative.

a) Find the local maxima and minima of f. 

b) Find the vertical asymptote

 

I graphed the function and located the  local max to be (-1,1) and local min (1,-1) however, I can't figure out how to plot the derivative of the function. I tried to use the diff expression but it leaves the graph empty when i attempt to plot it.

Also, just curious how am i able to join text words and maple commands together? For example, I want to be able to say "The derivative of the original function is [maple command here]" ? I tried to switch from text to math however nothing worked.

 

Thanks in advance!

Hi, I am stumped I've tried many ways but end up getting a graph with nothing on it or errors. I am trying to plot the tangent line to the equation f(x) = 2cosx-x^2 at x = 2; In addition, how would I plot the tangent line and the equation on one graph with distinctive line pattern for example, one being blue and dotted, while the other being red solid).

 

Thanks in advance!

I want to find numerically the limit lim(y[m](t),m = infinity), do you have an idea how to do implement it in maple?

 

 

"h:=0.000065;  Theta3(t):=sum(exp(-m^(2)*Pi^(2)*t),m=-100..100);  y[0](t)=1;  t>0;  m>=1;  y[m](t)=1-h*int(Theta3(s)(y[m-1](t-s))^(4),s=0..t);  "

0.65e-4

 

proc (t) options operator, arrow; sum(exp(-m^2*Pi^2*t), m = -100 .. 100) end proc

 

Error, (in y[m]) too many levels of recursion

 

0 < t

 

1 <= m

 

Error, (in y[m]) too many levels of recursion

 

``

 

Download recursive_integral.mw

I have three procedures with calling struture:

A(argseq) 

    > call B (argseq)

    > call C (argseq)

     > etc code

     > return results

end A()

Procedures A, B, C are defined in a single MAPLE .mw worksheet, and each time I use them I have to reload them by pressing return.

Please can you suggest the best course of action?  I have been reading about modules but am not certain that A knows about B and C in the dame module when it calls them

Can anyone help please?

MRB

 

 

Let ABC be a triangle with A(3,0,0),B(0,6,0),C(0,0,4) and let H(x,y,z) be its orthocenter .Find the coordinates of point H ?

I always find it difficult to debug maple codes. I'm used to the debug feature in programing laguages like C#, VB.Net, JAVA even MATLAB. They all have one thing in common which is the use of breakpoints. Breakpoints are inserted at different parts of a code so as to follow the program execution and to trace out errors. Is any similar feature in Maple? I only know the DEBUB() function and not that helpful to me.

Please, I have an error message which says Error, (in eul) illegal use of a formal parameter. I can't find the cause of the error. I got the result I wanted if i remove these lines eul := proc(x,y) , return yt: , end proc: and

yv := eul(x,y); that is if I consider the for..loop alone.

fxy := proc(x,y)
  return x/y;
end proc:

a := 0:
b := 1:
N := 10:
h := evalf((b-a)/N):
x := 0:
y := -2:
yt := Vector(3):

eul := proc(x,y)
    for j from 1 to 3 do
          y[j]:= y + h*fxy(x,y):
          x:= 0 + j*h:
          y := y[j]:
          yt[j] := y:
    end do:
    return yt:
end proc:
yv := eul(x,y);

Hi all, 

I'm trying to implement the smithChart on Maple, but this error "Error, (in unknown) invalid transform: output is not 2 or 3 element" keeps popping up for some reason. I have no idea how to fix it. Can anyone help me with this? Here is the smithChart:




smithChart.mw

 

smithChart := proc(r)
  local i, a, b, c;
   a := PLOT(seq(plottools[arc]([-i*r/4, 0], i*r/4, 0..Pi),
                 i = 1..4),

  plottools[arc]([0, r/2], r/2,
            Pi-arcsin(3/5)..3*Pi/2),
  plottools[arc]([0,r], r, Pi..Pi+arcsin(15/17)),
  plottools[arc]([0, 2*r], 2*r,
            Pi+arcsin(3/5)..Pi+arcsin(63/65)),
  plottools[arc]([0,4*r], 4*r,
            Pi+arcsin(15/17)..Pi+arcsin(63/65)));

  b := plottools[transform]((x, y) -> [x-y])(a);
  c := plottools[line]([0,0], [-2*r, 0]):
  plots[display](a, b, c, axes = none, scaling = constrained, args[2..nargs]);
  end proc:

smithChart(1);
Error, (in unknown) invalid transform: output is not 2 or 3 elements

I got a code file and i dont know how to load it in Linux. In Windows i just type:

read "E:/code.txt"

But thing now i change to use Linux and cant do the same (Maple 2015 64bit Linux ver), try to load

read "/root/Desktop/code.txt"

It show me that:

I click Cancel and it show me:

Hope can help me another ways to use and load my code to run.

Is there something I can put at the beginning of my worksheet to tell Maple to do everything in fractions?

 

Maple is outputing things like -0.166666667 when I solve an equation and I know that is -1/6

 

 

 

Hi,

In a simulation code I use "module-factory" concepts (where a module has a proc; the proc in turn returns another module that has all the procs one wants) a fair bit to keep the code readable and maintainable.

At this point I have the code mostly doing what I want it to, but the run time could be improved (read: I want it to go faster). So I have started working with CodeTools:-Profiling. Quickly I am running into the Profile() function apparently not being able to deal with my generated procedures.

Is there a way out? In other locations I read about procs to be profiled having to be in a Maple library; this is the case for my routines (it all is in a big module with procs, submodules etc.). I'd rather not rewrite the code extensively just to allow profiling (in particular I would not really like to abandon the module-factory scheme), but of course I can do some modification.

Any suggestions?

M.D.

 

hello

took this problem from a uk tv program.

4 dancers are initially at the 4 corners of a square, edge length 4 meters. every dancer moves towards the person on their left.

i want to know the equations of the spiral. the arc length of each path should be 4m.  also an animation of the 4 spirals would be great. 

dance.mw

under the heading "more spirals" the closest one is r(t)=1/t (decreasing modulus)

http://mathematische-basteleien.de/spiral.htm

 

Hello,

Anyone here know how to use the read command. I tried to use it to call and run the particular code but it didnt work. It produce this such error 

> read "02ExactSoln.m";
Error, could not open `02ExactSoln.m` for reading

I have no idea how to fix it. Or do I need to locate the code in any specific folder. 

Thanks

 

 

Here is the function I want to find the inverse of 

 U(x):=-(s^2/(s^2+1)+1/(s^2+1)-1)*exp(sqrt(s)*x/sqrt(phi))/(s^2+1)+exp(-sqrt(s)*x/sqrt(phi))/(s^2+1);

where phi>0

Now taking the inverselaplace of U(x)

 u:=invlaplace(U(x),s,t);

which give me an unevaluated integral.

Any idea, how to get the complete inverse, maybe interms of erf?

Hi,

  I have the following input

f:=x^2*exp(-1.2*x);
maximize(f, x=0..100,location);

 Maple gives me the location is x=1.25. However, how should I do to obtain this position?  If I write

 

a:=maximize(f, x=0..100,location);

 

  Seems it do not work :(

 

  I may try fsolve at the maximum value, but it seems to be awkward..

 

Thank you very much!

  

First 1252 1253 1254 1255 1256 1257 1258 Last Page 1254 of 2430