acer

32405 Reputation

29 Badges

19 years, 345 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@Alejandro Jakubi Thank you, sir. :)

@Alejandro Jakubi Thank you, sir. :)

@Christopher2222 As I mentioned above in a note,

    NB. Regarding your earlier talk about parse, the idea of parsing strings containing spaces,
    to rely on 2D implicit multiplication, looks dubious at best. What about "this 1is 2how $I like it, eh"
    or "some are 1-1 and  some are many-1".

It looks so much safer to use string inspection tools to look into strings, instead of parsing them and hoping for valid products of (valid, Maple) names. If you buy into that idea, then you wouldn't be trying to parse the strings at all, and would not run amok of control characters messing up the parsing.

@Christopher2222 As I mentioned above in a note,

    NB. Regarding your earlier talk about parse, the idea of parsing strings containing spaces,
    to rely on 2D implicit multiplication, looks dubious at best. What about "this 1is 2how $I like it, eh"
    or "some are 1-1 and  some are many-1".

It looks so much safer to use string inspection tools to look into strings, instead of parsing them and hoping for valid products of (valid, Maple) names. If you buy into that idea, then you wouldn't be trying to parse the strings at all, and would not run amok of control characters messing up the parsing.

StringTools:-Has doesn't work like you are expecting. It matches each character. As mentioned above , use Search or Split it, or something else easier.

If you are planning on using select then that replaces one of your map's. Don't waste time mapping a predicate to get to true/false entries; use the predicate in just the select call!

Don't waste time mapping every entry to a string, it's unnecessary. Just wrap the predicate into a conditional like t->if(type(t,string),..one thing,..other thing). (sorry, I have no single left quote for that if operator call right now.) Or get creative and act over indets(t,string). Or whatever. But don't change everything to a string.

acer

StringTools:-Has doesn't work like you are expecting. It matches each character. As mentioned above , use Search or Split it, or something else easier.

If you are planning on using select then that replaces one of your map's. Don't waste time mapping a predicate to get to true/false entries; use the predicate in just the select call!

Don't waste time mapping every entry to a string, it's unnecessary. Just wrap the predicate into a conditional like t->if(type(t,string),..one thing,..other thing). (sorry, I have no single left quote for that if operator call right now.) Or get creative and act over indets(t,string). Or whatever. But don't change everything to a string.

acer

@maple How are you storing the solutions of each fsolve call? (That was also asked above.) Is your code set up to that Maple must hold on to them all? Can you upload the code, so that we may see it?

If the numbers for the 2-Dimensional Badge are correct, then to date (25/07/2010) only three members have used 2D Math in five or more posts since the new version 2 of Mapleprimes went online in May. Doesn't that mean that the regular responders are avoiding it in Answers and Comments?

My biggest problems with the worksheet-upload method of posting 2D Math (as opposed to using the Editor button) are that it takes too much effort  and that the resulting images don't contain 1D equivalents in alt-tags so one cannot copy and paste them directly (without having to launch the GUI... and wait... and then use the mouse some more...). Grabbing some inlined, posted 2D Math and then putting it back into a reply, prettily rendered, is a lot of work.

2D Math in Mapleprimes posts could be useful if it made the math easier to see (for which, it'd need to be much better rendered, to be sure), and it were easy to post and grab and repost without using the Maple Standard GUI.

acer

Why waste cycles converting all of a to strings? As shown above, it is not a necessary step in order to get all the original string entries to be parsed.

And besides, how does your followup question make sense? What do you expect to happen, when "know how" is parsed? Do you expect no error, and if so, why?

The problem doesn't appear to be with the suggested parsing command, but with your expectation that anything be able to parse it in a `usual` sense.

Do you have some special sense, unstated as yet, of what "know how" should be converted to?

acer

Why waste cycles converting all of a to strings? As shown above, it is not a necessary step in order to get all the original string entries to be parsed.

And besides, how does your followup question make sense? What do you expect to happen, when "know how" is parsed? Do you expect no error, and if so, why?

The problem doesn't appear to be with the suggested parsing command, but with your expectation that anything be able to parse it in a `usual` sense.

Do you have some special sense, unstated as yet, of what "know how" should be converted to?

acer

I started polishing my code for the purpose of posting, but got carried away instead with a further Components enhancement. (I 'm using Plot Component qualities to allow reading of multiple points - entered by mouse selection - to be entered to denote a curve that must be transformed to a straight line.) ...but on vacation, I have no access to the code until next week. Similar to what Juan N suggested, I too use a 4th degee polynomial method. I have too many projects at 90% complete, since I often lose ihigh interest after solving the technical aspect to my satisfaction.

acer

I started polishing my code for the purpose of posting, but got carried away instead with a further Components enhancement. (I 'm using Plot Component qualities to allow reading of multiple points - entered by mouse selection - to be entered to denote a curve that must be transformed to a straight line.) ...but on vacation, I have no access to the code until next week. Similar to what Juan N suggested, I too use a 4th degee polynomial method. I have too many projects at 90% complete, since I often lose ihigh interest after solving the technical aspect to my satisfaction.

acer

I have a 2-player game engine, which I've used to program mancala and chess in maple. (the chess is weak because a strong engine needs more ply/sec than interpreted maple can do, and I haven't Compiled it yet.) A Blokus plugin wouldn't be hard. I used variants of alpha-beta/minimax & negamax tree-pruning algorithms for the engine. (mancala allows multiple moves/turn situations, making it more interesting. ) I'm on vacation with poor connectivity, so cannot write more this week. )

acer

I believe that, yes, it is an issue of a global, unassumed n versus a local, assumed n. But I think that it is the opposite situation, and that the SubMatrix result is the one with the global n.

An evaluation of the sub-Matrix is then what is needed, and that can be done with either copy or inplace semantics.

acer

I believe that, yes, it is an issue of a global, unassumed n versus a local, assumed n. But I think that it is the opposite situation, and that the SubMatrix result is the one with the global n.

An evaluation of the sub-Matrix is then what is needed, and that can be done with either copy or inplace semantics.

acer

First 453 454 455 456 457 458 459 Last Page 455 of 593