Joe Riel

8049 Reputation

22 Badges

15 years, 10 days

MaplePrimes Activity


These are replies submitted by Joe Riel

I agree that a brute-force recursive solution is overkill, but I enjoyed writing the program more than I'd enjoy solving the puzzle. The idea of limiting the recursion depth is clever. The PDF was generated with noweb (the site is down right now); a literate programming tool. Norm Ramsey wrote noweb; it is simpler than Knuth's Web tools and can be used with almost any language. I've written some enhancements to the noweb.sty file used to typeset the generated LaTeX and have also created a maple specific awk filter for automatically indexing the file. If you're interested in any of this, contact me. I'll write a description in a blog at some point.
I tried the same with firefox (1.0.4) on linux; it doesn't mention anything about a compressed folder. Clicking on view in xpdf opened the pdf.
Let a player have abilities x1, x2, ... xn. Use the monte carlo simulation to estimate the 9n partial derivatives of S (total score) with respect to xk for each of the 9 positions in the lineup. Now, for each player, compute their scoring ability at each position (just plug abilities into the linear sum). You now have a 9x9 matrix of scoring ability for each player by position in lineup. Testing each permutation, 9!=360K, can be done quick enough; it's not clear to me whether dynamic programming can be used here.
You can enable/disable some of the sidebar info (if that is what you were referring to) by changing the settings in the "block configuration" section of your "my account".
I suspect it will be rendered badly in the sidebars (the tags appear). Besides the poor rendering in the sidebars, the tags use up limited title length. Considering that, so far as I can tell, no one has intentionally used font effects in their titles, it would seem more useful to allow < and > characters in the title. Another nasty bug is that an unterminated tag in a response is not localized to that response, it effects responses lower in the page and both sidebars. To see this, I will enter an unterminated <em> tag here: Moderator Edit: In order to restore the site, I have placed the closing <em> tag in this comment. Originator Poster: Thanks, moderator. I apologize for leaving the open tag---probably wasn't a smart idea though it effectively demonstrated the issue. If it isn't practical to localize the effect, is there a way to reject, with an appropriate warning, posts that contain such open tags?
I entered that as "here's an example of lowercase converted to uppercase". In the sidebars it shows up as lowercase, but in the main viewing area, the subject line is in Subject Case.
Thanks for the suggestion. By using Maple10's optional parameter syntax, you can simplify the procedure somewhat. Also, it's a good idea to add "copyright" to the option field so that it behaves like a normal copyrighted procedure (only displayes skeleton when printed unless interface(verboseproc) is 2 or greater). Here's my minor alteration:
MakeIntervalType := proc(N::symbol, R::range
                         ,LoEnd::{identical(open),identical(closed)} := closed
                         ,HiEnd::{identical(open),identical(closed)} := closed
                        )
local Hi, Lo, t, Test, Test1, Test2;
description "Creates a user-defined Maple type for an interval - finite or infinite, open or closed";
options `Copyright (c) Douglas B. Meade, Univ. of South Carolina, August 2005`;
    Lo,Hi := op(R);
    Test1 := `if`(LoEnd=':-closed', t >= Lo, t > Lo);
    Test2 := `if`(HiEnd=':-closed', t <= Hi, t < Hi);
    Test := unapply( Test1 and Test2, t );
    TypeTools:-AddType(N, Test)
end proc:

I agree, having the <code> tag act as verbatim would be the best. Also, do we really need to allow html tags in the titles (subject line)? I originally typed <code> in the subject line, but it was not visible when previewed. When entered as <code> it is not properly rendered in the summary text in the side bars. And why are some subject lines rendered in "Subject Case", i.e., initial letters that were input as lower case get capitalized? This doesn't always happen, possibly it depends on whether I am replying to a comment or not.

You should probably consider adding slugging percentage to the mix; three hits to score a run seems like a lot. It is unfortunate (or not) that the usual baseball statistics (on-base percentage, batting average, slugging percentage) do not suffice. However, if you also keep track of walks and sacrifices you can then make a simple monte-carlo simulator that might be a reasonable approximation. That is, evaluate a uniform random variable to determine whether each batter (depending on statistics) walks, hits (for so many bases), sacrifices or wastes an out. Then keep track of total bases and outs. When bases greater than 4, increment the runs, etc...
Something like `∂□`, for instance (not that I'd use that particular combo). I can create it using maple input, but not using 2D input with Ctrl-space completion. I cannot tell whether that is a limitation of the 2D mode, or just my incompetence in dealing with it.
Something like `∂□`, for instance (not that I'd use that particular combo). I can create it using maple input, but not using 2D input with Ctrl-space completion. I cannot tell whether that is a limitation of the 2D mode, or just my incompetence in dealing with it.
Are you able to create multicharacter symbols using Ctrl-Space? I never got it to work, so use the method I previously described (though I'd probably go that way anyhow, since I prefer maple input mode).
Are you able to create multicharacter symbols using Ctrl-Space? I never got it to work, so use the method I previously described (though I'd probably go that way anyhow, since I prefer maple input mode).
It is quicker, however, it returns the noninert partial differentiation symbol, which may not be desired; for example, if you want to create `∂f`.
It is quicker, however, it returns the noninert partial differentiation symbol, which may not be desired; for example, if you want to create `∂f`.
First 178 179 180 181 182 Page 180 of 182