Carl Love

Carl Love

28055 Reputation

25 Badges

12 years, 361 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@rab285 Is your Matrix 383 rows by 3 columns?

Please post your code, showing an example of the phenomenon that you describe.

@Deltafee You need a semicolon after Array(1..2).

@adel-00 It should be 4*Pi and 5*Pi, not 4Pi and 5Pi.

Do you want to plot two curves on the same axes? or on different axes side-by-side? Using an Array will make them side-by-side.

You may just be missing multiplication signs in your plot commands.

@adel-00 The 2 stands for the 2nd column of the data matrix, which is the y-coordinates. You do not have to change anything inside the procedure.

I can't tell you why it doesn't work for your P4 and P5 because you haven't said how you generated them.

Two more bug with MaplePrimes:

  1. When one edits a post with an uploaded plot (probably other uploads also), the plot disappears.
  2. The plot of a user's reputation over time doesn't work: The area where the plot use to be is just blank.

@adel-00 To do that, you need to remove the definition of tau from the initialization section. Only give tau a value before each individual plot.

tau:= Pi:
P1:= plot(Spec, -15..15, options )
 
Normalize:= proc(P::specfunc(anything, PLOT))
local A,Smax1;
     A:= op([1,1], P);
     Smax1:= max(A[..,2]);
     if A::list then  A:= Matrix(A)  end if;
     A[..,2]:= A[..,2]/Smax1;
     subsop([1,1]= A, P)
end proc:

P1:= Normalize(P1):
tau:= 2*Pi:
P2:= plot(Spec, -15..15):
P2:= plottools:-translate(Normalize(P2), 0, 1):
tau:= Pi/3:
P3:= plot(Spec, -15..15);
P3:= plottools:-translate(Normalize(P3), 0, 2):
display([P1,P2,P3]);

@Kitonum The English plural of a noun that ends in -sis is to change -sis to -ses, and this is pronounced with a long e: -seez. So, the plural of basis is bases, pronounced BAY-SEEZ. Sorry to have a language with such arbitrary-seeming rules.

@ecterrab Now that I know that it is expected to be idempotent, I will post them when I encounter them. I haven't saved my examples because I didn't think that it would be considered a bug. The idempotency should be mentioned on the help page.

@yendis Okay, you specify a line and a plane in any form that you want, and I'll show you how to use geom3d on them.

That was asked and answered two weeks ago: here's the link

@nm Your questions are very good, but I do not have the answers. I do use some trial-and-error. I have a good feeling for what expand, combine, and evalc do. But when I use one-argument simplify or convert(...form) (where form is a function name or function class name), then I am using trial-and-error. One thing that makes one-argument simplify hard to understand is that it is not idempotent, i.e., simplify(simplify(expr)) is not necessarily the same as simplify(expr).

The reason that I did not answer in the other thread is that I think that what you ultimately want is a procedure that determines whether a line segment intersects a triangle. This idea about the end point of the line segment satisfying 2 or 3 of the inequalities is not enough for that.

@adel-00 From your previous posts, I am guessing that you simply want the original plot shifted up by 1. So, suppose that P is the original plot. Then use

P2:= plottools:-translate(P, 0, 1);
plots:-display([P,P2]);

First 592 593 594 595 596 597 598 Last Page 594 of 709