Carl Love

Carl Love

25319 Reputation

25 Badges

10 years, 237 days
Himself
Natick, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@acer I'm sorry if you mentioned this in your worksheet; I didn't read it because I'm posting from my phone. I see now that you mentioned nested elementwise operators in your posted text. Again, sorry for not reading closely.

@Oliver K Your suggestion only returns the 1st list element, not the left sides of the equations. 

@mmcdara I think a DataFrame combines the best features of a spreadsheet, a matrix, and a table. Its underlying data structure is identical to your matrix, but the indexing is overloaded so that it's indexed by the odds from 1 to 49.

@Michael Although prime factorization isn't the most efficient way to do this, you were well on your way to discovering the simplest code to do it: the degree command:

p_log:= (n::integer, p::prime)-> degree(ifactor(n), ``(p)):

The key is the `` function symbol. It doesn't show in prettyprinted output, so it serves as a way to display output with "just" parentheses. But you can see it with lprint (a command that shows a "raw form" of output):

lprint(ifactor(24));
``(2)^3*``(3)

All I see is that you've defined (implicitly) a sequence of polynomials. Rings have nothing to do with it.

@dharr I just came up with that formula off the cuff. Perhaps the mean would be better in general than the midrange.

@vs140580 A good choice of scale factor for each column (whether dependent or independent) is

10.^(-ilog10@((max+min)/2.)@abs~)(Data1[.., j])

where j is the column number. This formula gives the same scale factors that @dharr used, although I don't know whether he actually used a formula or just eyeballed it.

In plain words, the formula is "Divide by the power of 10 closest to (but not exceeding) the midrange of the absolute values of the data." 

 

Maple supports function composition via the operator @. But I don't understand your example. Please make a simpler example that uses no variables other than the function names and their parameters. And why is the parameter of R not used at all?

@mmcdara As far as I know, Maple has no means of plotting any solids. We only plot the surfaces that are their boundaries and imagine that the interiors are filled. When the OP specified "intersection of two solid bodies", they were asking for a means to plot the surfaces that are the boundary of that intersection. 

@mmcdara A second range argument in a 2D plot command is allowed, and its effect is similar to using that range as the view of the vertical coordinate. If the additional range is given in the form name= range, then in addition the name is used as the vertical axis label.

If a keyword parameter that take truefalse values, such as gridlines, is given without a value, that's equivalent to setting the value to true.

@nicolesharp100 See help pages ?StringTools,Regular_Expressions, ?StringTools,RegMatch, ?StringTools,RegSplit, ?StringTools,RegSub, and ?StringTools,RegSubs. The first of these pages explains the entire sublanguage called "regular expressions" (which is about twice as old as Maple).

@nicolesharp100 MaplePrimes already has tags. People just need to use them more.

@nicolesharp100 See help page ?history.

@JAMET Here it is in a worksheet:
 

restart:

S1:= 441:  S2:= 1109:  S3:= 511:  S4:= 900:  S5:= 2904:  S6:= 285:

for i while (x:= S||(i+1))::And(algebraic, Not(name)) do S1+= x od;

1550

2061

2961

5865

6150

 

Download Add_with_for.mw

Please put your Replies after the Answer that you're replying to rather than directly after your Question.

@tomleslie I agree: That other Answer shows how to get those values.

4 5 6 7 8 9 10 Last Page 6 of 657