Carl Love

Carl Love

26386 Reputation

25 Badges

11 years, 142 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

I deleted your Question from today because it is essentially the same as this one. If you have additional information, put it in this thread. 

@Preben Alsholm Indeed, "contrived".

A type check (including those constructed with satisfies) should only return either true or false; returning anything else including errors is a bad idea, and in some situations can be critically dangerous (such as causing kernel death). This includes all type checks, not just those used for checking calling sequences.

And, the overload mechanism reacts only to error messages beginning with "invalid input", which your parse error does not. The help page line that you quoted is thus wrong, and should be corrected. So, IMO, the only bug is that erroneous statement in the help page.

@sand15 The culprit is implicit multiplucation in input; it shouldn't be allowed in 2D Input. I'm not saying that a multiplication operator should be explicitly shown in the input, just that the user should be requited to enter an operator.

@emendes A DataFrame is an object (in Maple's implementation of object-oriented programming (OOP)). When a procedure exported by an object's "master" module is applied to that object, the procedure is automatically recognized as the module's export without needing with or a module prefix. These procedures are called the object's "methods", which is an OOP term that I think is ridiculous because there's no need for a yet another new word for "procedure". So, Tabulate is a DataFrame method that simply invokes DocumentTools:-Tabulate.

@WA573  @Rouben Rostamian  Certain assumptions tacitly imply other assumptions. Of couse, any mathematician knows that. What I specifically mean is that certain assumptions formally made in Maple cause other assumptions to be formally (but tacitly) made. A common example is that assuming a < b is equivalent to assuming a < b, a::real, b::real. So, assuming a < b will cause conjugate(a) to be treated as a, and likewise for b.

I just mention this "for what it's worth"; I don't know if this knowledge can help to explain the OP's situation. I'm just saying that while making that assumption may cause confusion for a human reader if it's done without comment, it doesn't cause any confusion for Maple.

What do you mean by "do this is by using the Tabulate (plain command and not from DocumentTools) function"? As far as I can tell, there is no "plain" top-level Tabulate, only Tabulate commands in packages DataFrameDocumentTools, and StringTools. Are you converting a Matrix to a DataFrame before using Tabulate?

I have had that bug on my computer before (many times), but I haven't seen any reasonable explanation for it, nor can I reproduce it. It doesn't seem to be widely reported. It is intermittent. When it's happened to me, other symbols also change, such as + and - becoming and K. Does that happen for you? And when it happens to one of my worksheets, all open worksheets are affected. If I save my worksheets and close the entire Maple session, the bug is gone when I restart Maple---the errors are not stored in the saved worksheets.

@Mike Mc Dermott If I made a suggestion in this thread, it seems to have disappeared. I recall thinking about a suggestion for this thread. What is the thing that you think is "even better"?

@JAMET Using that code, I do get [4, 18/5, 1].

@Rouben Rostamian The YouTube video that you linked is an excellent demonstration and explanation of the motion of balls on rotating platters. And it explains why certain patterns can be explained entirely by the moments of inertia.

If there's no friction, then why would the carousel have any effect at all on the cube, regardless of whether or not it's self-propelled?

I think that using the principles from, say, a first university physics-for-majors course, the only approach to the problem is for it to be a round object (cylinder or sphere, solid or hollow) rolling without slipping. The moment of inertia of the object comes into play, which can be easily calculated for spheres and cylinders (uniform solid or hollow).

Do you intend for &x to represent the vector cross product of two 3-D vectors? That's what &x usually means in Maple. Or do you want the product of a Matrix, the inverse of Mat, with a vector?

@mmcdara I think that the answer to both of your most-recent questions is that the Statistics package was written before Maple formally had objects, and RandomVariable would greatly benefit from having its code refactored as an object.

@FDS I tested the 3rd line of code from my Answer in 2D Input, and it works. Here it is applied to row selection:

restart

NULL

M3 := Matrix(4, 3, {(1, 1) = 34, (1, 2) = 67, (1, 3) = 1, (2, 1) = 35, (2, 2) = 80, (2, 3) = 1, (3, 1) = 45, (3, 2) = 78, (3, 3) = 2, (4, 1) = 56, (4, 2) = 99, (4, 3) = 2})

Matrix(%id = 36893491144047469140)

M3[select(`~`[`=`](M3[() .. (), 3], 2), [`$`(1 .. op([1, 1], M3))])]

Matrix(%id = 36893491144047452636)

 

NULL

Download select.mw

@Laurenso A warning is not an error. After receiving the above warnings you can proceed to run the procedure. The warning can be avoided by putting local j, k; in the locals area of the procedure.

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