jakubi

1384 Reputation

12 Badges

19 years, 238 days

MaplePrimes Activity


These are answers submitted by jakubi

Note:

A:= [ A, B, C ]: 
Error, recursive assignment

Use 'exp' for the exponent function.

I have just looked by chance at Medit. Playing a bit, in ten minutes, I have got it work as an IDE-like for Maple:

This is under Ubuntu 8.04, and there is a Windows port also, though I have not tested yet.

There has been some threads on workarounds using standard editors. E.g.

code editor for Maple

MapleV, an Emacs Mode for Maple

Vim mode for Maple

Look at ?solve,details > Finding All Solutions with Restrictions. In this case, with Maple 13:

solve([cos(x)=0,x>0,x<3*Pi], x, AllSolutions, Explicit);
                        Pi         3 Pi        5 Pi
                  {x = ----}, {x = ----}, {x = ----}
                        2           2           2

Note that in Maple 13 options can be used instead of environment variables. And, as far as I know, 'fsolve' does not react to the value of the _EnvAllSolutions variable. You can use the option 'avoid' in 'fsolve' for finding additional roots (see ?fsolve,details).

You may try a series solution like:

de:= diff(y(t),t)=cos(Pi*t*y(t)):
ics:=y(0)=0:
dsolve({de,ics},y(t),series);
                                   2
                                 Pi   5      6
                      y(t) = t - --- t  + O(t )
                                 10

Note: use Pi for 3.14...

You mean something like this?:

mydisplay2 := proc(p,l)
    local xy, xmin, xmax, ymin, ymax:
    local L1, L2:
    xmin:=-10: xmax:=10:
    L1:=map(x->op(1,x),op([1,1],p)): xmax:=max(L1): xmin:=min(L1):
    L2:=map(x->op(2,x),op([1,1],p)): ymax:=max(L2): ymin:=min(L2):
    xy := (xmin,xmax,ymin,ymax)-> 
    plots:-display(plottools[line]([xmin,0],[xmax,0],thickness=3), 
    plottools[line]([0,ymin],[0,ymax],thickness=3), 
    view=[xmin..xmax,ymin..ymax]):
    plots:-display({p,xy(op(l))},
    view=[l[1]..l[2],l[3]..l[4]]):
    print(%):
end proc:

p := plot(cos(x), x=-2*Pi..2*Pi):
mydisplay2(p,[-2,2,-0.5,0.5]);

Not sure yet about the case of the abscissa, for a function y(x) say, as normally either you choose the plot interval or let maple use its default (like -10..10)

For the ordinate, though, it is basically a matter of finding min and max for y(x) on that interval. One way to find ymin and ymax is using the lists [x,y] for the plot points in the 'plot' data structure:

p:=plot(cos(x), x=0..2*Pi):
L2:=map(x->op(2,x),op([1,1],p)):
ymax:=max(L2);
ymin:=min(L2); 

                              ymax := 1.

                    ymin := -0.999995190907583154

The indexed name w[j] is an invalid parameter name.

Yes, this automatic single limit case is clear to me. In fact, I have requested this functionality many years ago... And I think that I have even found some workaround.

But still I do not find clear the case of all four "inf".

Do you have a specific example of the effect of that Matlab command?. In this page, I do not see something specific about:

axis ([-inf inf -inf inf])

but just the case of a single "inf".

Hey, you have the same "ecuation" than piculonco90!

?plot,interface > Classic Worksheet Interface, states:

The following plotting options are not supported: axis, caption, glossiness, gridlines, legendstyle, transparency.  If any of these options are provided in a plotting command, it is ignored.

In fact, something can still be done in Classic GUI by using:

plotsetup(maplet):
First 9 10 11 12 13 14 15 Last Page 11 of 24