Carl Love

Carl Love

28070 Reputation

25 Badges

13 years, 34 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@vv Rather than entering the RootOfs manually and coming up with names for them, you can do this:

Rs:= indets(sols, RootOf):
alias(seq(R[k] = Rs[k], k= 1..nops(Rs)));
sols; #redisplay in compact form

@Mac Dude I only said "a year or so" because it seems like the administrators are only motivated to make about one update per year to the MaplePrimes code.

I guess that a lot of the spam comes from India. I have 2-1/2 reasons for thinking this:

  1. A lot of it is for non-web-based businesses in India, such as moving companies in specific cities.
  2. "Juriya," which appears as a suffix on a vast number of spammer's userames, is, I believe, a region in India. It's a vague region, I think, not something easy to look up like a city or state---kinda like we in the US would use "the Northeast".
  3. The relentless assault of spam begins precisely at midnight, Eastern Daylight Savings Times, and tapers off between 8 and 10 AM, Monday through Saturday. This must be a common work shift somewhere.

 

@vv Thank you. I was just trying to be dramatic to a humorous extent. I voted up your Question when I first read it.

I updated the code to work with eval's recurse option, and to prettyprint correctly when it returns unevaluated.

If you can think of some more interesting test cases, please test them. I do appreciate all testing of my code; I do tend to post quickly with inadequate testing.

An interesting situation is that eval itself, when it returns unevaluated, has a bound variable. For example, in Eval(f(x), x= a), x is a bound variable. The new eval works correctly with these bound variables, although I haven't yet updated the examples section of the Answer to show that.

@vv Okay, my procedure has been corrected, and I added your new example to the examples section.

Kitonum's solution also "fails" for eval('g(x)', x= 2*x), yet you gave his a vote up whereas mine is treated like a piece of trash to be kicked to the side of the road.

@emendes If L is a list, then <L> will print line by line. If L has more than 10 members, then you'll need to issue the command

interface(rtablesize= infinity);

You only need to issue this command once per session, and you can put it in an initialization file. You can replace infinity by any positive integer that you want to be the maximum number of lines to use.

@vv I think that eval can be easily corrected to handle these situations (see my Answer). If this were done, then there's no need to inform the user about potential problems.

@ecterrab I wonder if you would feel the same way if it were sum instead of int? Please see my Answer below where I apply the same principles to both the default sum and your redefined sum from the Physics package, and then I apply my corrected version of eval to both.

I feel, and I believe that VV feels, that regardless of what the function f is, eval(f(x), x= 1) should equal eval(f(z), z= 1). If this isn't true, then eval is no better than subs.

Ideally, all procedures which use bound variables in their arguments (such as int, sumlimit) should treat their bound variables the same way that seq, add, and mul treat their bound variables. Furthermore, there should be a parameter modifier to declare a variable as having that special status like the bound variables of  seq, add, and mul.

@Preben Alsholm The way that Google (and I guess some other search engines) order search results in based (partly) on how many other web pages the URLs appear on. This is the famous "Page-rank algorithm"---how Google founder Larry Page became famous. Thus, someone who wants to raise the rank of their page wants to get their page's URL mentioned on as many other pages as possible. This is called SEO: Search Engine Optimization. (Not all SEO is nefarious. Legitimate non-spam-related SEO is a major business.)

I spend 10 - 30 minutes every day (except Sunday) deleting spam. There's much less spam on Sunday. Each deletion requires four clicks and three page refreshes: click on title, refresh, scroll down, click on More, click on Delete as Spam, refresh, click on Delete, refresh. And MaplePrimes has by far the slowest page refresh of any web site that I visit regularly.

We need BULK-MODE DELETE! On the page www.mapleprimes.com/recent, there should be a column of check-off boxes next to the titles, just like any web-based email system has. We should be able to check off a bunch of boxes, then one click on a Delete as Spam button, and then they're all gone with NO CONFIRMATION DIALOG. If any in the bunch have Replies, or any are from users with nonzero reputation, then you can reject the deletion operation.

I have deleted thousands of spam, so I know: I don't recall ever seeing spam from someone with a nonzero reputation. Perhaps once or twice in the years that I've been doing this have I seen spam with a Reply. These cases are so rare that they're not worth considering in the bulk-mode delete. If they occur at all, they can be deleted through the ordinary means.

Perhaps you can restrict the bulk-mode delete to users with reputation over 1000.

Since a significant percentage, perhaps the majority, of legitimate Questions come from users with zero reputation, I'm totally and vehemently opposed to the idea of quarantining Questions from users with zero reputation.

I'm hesitant about the captcha idea. Because of what Axel said, we don't know if it'll actually work. If it doesn't work, then it'll be a year or so until the next idea is tried. And I don't want the legimate new users to be inhibited, as Bryon says. On the other hand, the bulk-mode delete is guaranteed to work.

Finally, any user whose username ends with "juriya" is a spammer. I don't know what it means; it's just a pattern that I noticed.

@emendes To use sort directly with a monomial order, the object being sorted needs to be a polynomial, not a list. That is why in my original Answer that I added the monomials (`+`(M)) before sorting. To sort a list of monomials, you need to use TestOrder.

But you didn't say if my most-recent procedure works for you.

@emendes My Answer at the beginning of this subthread was a little bit more complicated than it needed to be because I forgot about the comparison function Groebner:-TestOrder. Here's a procedure using it:

monomials := proc (p::polynom, vars::list)
local
     M,
     v:= indets(p, suffixed({vars[]})),
     C:= coeffs(expand(p), v, 'M'),
     P:= plex(ListTools:-Reverse([v[]])[]),
     S:= sort(`[]`~([C],[M]), (a,b)-> not Groebner:-TestOrder(a[2], b[2], P))
;
     (map2(op, 1, S), map2(op, 2, S))
end proc:

That should work in Maple 14. It can be done more elegantly in later Maple.

Let me know if that works for you, and if it produces what you consider to be plex order. Apparently that's a little different from how Maple considers it because I needed to use the Reverse and the not to get the order shown in your Question above.

@Art Kalb See my Answer below, where I explain the difference.

@emendes Do you want it to return a list of the monomials in plex order and a list of the coefficients in the corresponding order and have it work in Maple 14?

@acer Ah, I just failed to test a case with an even number of arguments where no condition is satisfied. Thanks!

@sunit You wrote:

I just wanted to remove these terms from my equations. So this is the way i came up with.

Sure, if you consider these formulae to be just abstract symbols and you want any terms containing either or 1/X to disappear, you can just say "Poof!" (or use computer algebra) and then they're set to 0. But how can your model have any physical relevance if you do that? Sure, I can see setting one of them to 0 if it's considered to be small. But if one is small then the other is big, no?

First 387 388 389 390 391 392 393 Last Page 389 of 709