Thomas Dean

227 Reputation

9 Badges

16 years, 106 days

MaplePrimes Activity


These are replies submitted by Thomas Dean

@acer 

From an earlier answer to a question:

P:=x->x^4+x^3+a*x^2+sqrt(2)*x+b;

[Re,Im](P(1+I)); ## in

solve(evalc([Re,Im](P(1+I)))=~[0,0]);

Looking at this, it behaves like map in that [Re,Im](P(1+I));  returns a list of

    [Re(P(1+I)), Im(P(1+I))]

@acer 

It appears that maple2019 does not like subscripted variables as parameters.

restart;

p[D] := r[D] -> 3*r[D];

 invalid parameter; functional operators require their parameters to be of type symbol or (symbol::type)

@Thomas Richard 

I just upgraded to maple2019, the default release then.  Now that maple2020 is released, Maplesoft promised a free upgrade, since I just upgaded to 2019...

For now, I get FAIL.

@Thomas Richard 

This is a long chain of questions/answers, starting in maxima.

If I use enough points, maple produces the most correct plot.

I use maple for most things.

f:= 2*x^5-x^3*y+2*x^2*y^2-x*y^3+2*y^5;
for idx to 10 do
    lim:=1/idx:
    plots[implicitplot](f,x=-lim..lim,y=-lim..lim);
end do;

for idx to 10 do
    lim:=1/idx:
    plots[implicitplot](f,x=-lim..lim,y=-lim..lim,numpoints=1000000);
end do;

 

@Kitonum 

Thanks,

After you pointed the way, I can manually factor f.  Programmatically?

Other than inspection, how do I determine the sign of a group of terms?

@acer 

interface(ansi=false) in .mapleinit fixed the problem.

Thanks

I use linux and command line maple 2019, running in an xterm, with courier 12 font.

When I type, for example, a 'y', it looks like a courier 'y'.  If I then press a space bar, the character changes, so it looks more like a 'u' with an underscore.  If I do this in an xterm not running maple, the character remains looking like a courier 12 'y'.

This echoed character must be coming from maple.

How do I fix this?

I use Maple 2019 and have not seen this.

How long does it freeze?  Is it just busy?  How about CPU usage?

I recently browsed through the maplesoft applications.  I poined it out, hoping it would help.

Maybe someone will be able to help tomorrow or Monday.

I use linux and command line maple 2019.  The font is controlled by the xterm.

alias maple='/usr/bin/xterm -T Maple -j -sk -sl 1000 -bc -bg white -fg black -geometry 80x55 -fa "Courier" -fs 12 -e /usr/local/maple2019/bin/maple &'

Again, google and reading...

@Joe Riel 

 

It works fine, if I follow instructions and put the preprocessor commands in a file.

Sorry for the noise...

@Joe Riel 

    |\^/|     Maple 2016 (X86 64 LINUX)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2016
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
> $define Time(x) restart; \                                     
syntax error, missing operator or `;`:
>                 proc() \
>                 local data := [seq(1..10^6)]; \
>                     CodeTools:-Usage(proc() to 10^4 do \
>                                                 evalb(x) \
>                                             end do; \
>                                      end proc()); \
>                 end proc()

 

Should

N:=<M|<2,0,2,0>>;

be

N:=<M | <Y,E,A,R>>;

And, the result be

YEARs := [2002, 2013, 2020, 2024, 2035, 2046, 2057, 2068, 2079]

F := [x^2+y+z-1, y^2+x+z-1, z^2+x+y-1]:

soln := solve(F):

lprint("Equations:  ",F);
for s in soln do
  if nops([allvalues(s)]) = 1 then
    lprint("substitute: ",s);
    lprint("   results: ",subs(s,F));
  else
    for t in allvalues(s) do
      lprint("substitute: ",t);
      lprint("   results: ",evala(subs(t,F)));
    end do;
  end if;
end do;

 

evalf(solve(...)) and fsolve return solutions in different orders.  One gives the first real solution and the other gives the second real solution.

Thanks,

1 2 3 4 5 Page 2 of 5