awass

301 Reputation

10 Badges

19 years, 120 days

MaplePrimes Activity


These are questions asked by awass

I am very frustrated with the geometry package.
I wanted to draw a circle thru 3 points and so I opened the geometry package help pages.
> restart;
> with(geometry);
> with(plots);

Here is the example given there
> circle(c1, [point(A, 0, 0), point(B, 2, 0), point(C, 1, 2)], 'centername' = O1)

As you can see the command uses the point command from the geometry package which is

> point(C, 1, 2)

Maple consistently uses := as the assignment operator. Not with this command. One would expect the syntax to be

>C:=point([-1. 2]);

or some such but no, that is not how it works.Notice that I am not alone in my opinion about this being a violation of standard Maple syntax; the Maple parser AGREES with me

> type(point(C,1,-3),point);
                             false

Perhaps I am just being grouchy but pointplot works fine with
> pointplot([[1, 3],[1.7, 2],[-1, 7]])

But
> pointplot([P1,P2,P3]);
Error, (in plots:-pointplot) number of elements in list must be a multiple of 2

Oh well, let’s see what we get with our circle construction
>display(c1);

Error, (in plots:-display) expecting plot structure but received: c1

Bad guess on my part.

> radius (c1)
yields the correct number and
> center(c1)
yields the name of the circle but
>coordinates(center_c1);
yields what I want. Peculiar but OK , let's go on.
I can write the equation of the circle now that I have the center and radius but hopefully I try

>  equation(c1); and get an error message!!!

The commands center, radius work but equation does not! Here is what works
> Equation(c1)

If one really wants to CONFUSE the user why not eQuaTiOn? Who would guess that? (Sorry to be sarcastic but …) At least with the equation and implicit plot one can finally get a plot of the circle. Is that CLUMSY?

Hi,

I am using Maple 2023 on a Mac. When I issue the following commands

with(plots);
for j to 10 do
    pl || j := plot(sin(j*x)^j, x = 0 .. 5);
end do;
display([pl || (1 .. 10)], insequence = true);

I used to get an animation but also some controls: I could easily repeat, reverse, change FPS, etc. Now I seem to have to go Format_>Plot->Animate->Play. Has there been a change in Maple or have set some preference to this awkward form? I admit I have not been using Maple a lot these last couple of years.

S := [1, 2];
                          S := [1, 2]

T := [1, 2];
                          T := [1, 2]

is(S = T);
                              true

Sv := Vector([1, 2]);
                              

Tv := Vector([1, 2]);
                              

is(Sv = Tv);
                             false

is(convert(Sv, list) = convert(Tv, list));
                              true

I have a document with quite a few symbols saved to my favorites palette. When I close the file and then reopoen it the Favorites Palette has not changed-the symbols are right where I want them. However, if I open the file with another computer the Favorites Palette is empty! What is happening?  (The document is stored in Dropbox and both computers are Macs running Maple 2023.)

I  had to deal with a long number x =  521...773 that i wanted to break up into 3 digit segments. I converted x to a string and got y="521...773". Then I used String Tools to LengthSplit y and got a sequence z="521", ..."773". So far so good. Next I tried to extract the 3 digit segments and tried
convert(z[1],integer) but that led to

Error, (in anonymous procedure called from depends) too many levels of recursion

Very mysterious. The command convert("521",name)  gave me the symbol 521, not the number.
I eventually stumbled across parse("521") and that gave me what I wanted,namely the integer 521. I looked at the Help page for parse but decided I did not want to delve into that bit of arcane knowledge.

I also tried several times to write little procedures to strip off the double quotes but was unsuccessful.

I am sure there is a more obvious way to go about this. Any suggestions?

1 2 3 4 5 6 7 Last Page 1 of 10