Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

Thanks, I believe the spreadsheet option should work for what I'm thinking of using it for. 

However I would have liked to have had a simple table representation automatically set up using code on the document page.  Perhaps this functionality will be added in an update or a newer version?

hmm, i just answered this question and it looks like it posted but the refreshed screen does not show my posted reply????  I'm sure it has been posted but I don't see it.

This could also be a reason for the double postings too.  Some of the postings are slightly worded differently too meaning they went through the trouble of entering their post again.  And have seen exactly what I am seeing right now. 

So

 

I know I've done it myself early on when nothing was happening on my end.  I can bet you that it is most likely from dial up users but actually I've even noticed lag times on high speed at work.  And the reason is because it took so long for mapleprimes to react that you think nothing's happening or maybe they think (like I did) they didn't actually click the button and so it's pushed again.  It's almost as if there's too much overhead on the site?

Thanks Acer, I was in fact assuming StringTools:-Has worked on a string and not a character. 

Okay, so, I figured out why Maple kept throwing me an error when I tried to parse the string, which is the reason I was trying to move everything to a string and do uneeded conversions.  Turns out the data I read into Maple using HTTP[Get] contained hidden control characters in the string.  Which gave me an errror when I tried to parse it --   Error, incorrect syntax in parse: unexpected end of input (107) 

Using the command   Remove(IsControlCharacter,data)   allowed me to use the parse command in the way I thought it should have worked on the string. 

I suppose control characters are something you need to watch out for.  It's not a problem until you run into them. 

Thanks Acer, I was in fact assuming StringTools:-Has worked on a string and not a character. 

Okay, so, I figured out why Maple kept throwing me an error when I tried to parse the string, which is the reason I was trying to move everything to a string and do uneeded conversions.  Turns out the data I read into Maple using HTTP[Get] contained hidden control characters in the string.  Which gave me an errror when I tried to parse it --   Error, incorrect syntax in parse: unexpected end of input (107) 

Using the command   Remove(IsControlCharacter,data)   allowed me to use the parse command in the way I thought it should have worked on the string. 

I suppose control characters are something you need to watch out for.  It's not a problem until you run into them. 

I'm not understanding why there are so many thumbs down for the question?  Without explanations you can't tell if people are dissing the user or dissing something said in the question or disagreeing with the code they wrote. 

All questions are valid and they should not be thumbed down for any reason. 

A suggestion to the Administrator is to get rid of the thumbs down option for the original posted question. 

Okay, yes the presence of the word.  I was trying to use a combination of map map2. 

I thought maybe we could get something like this to work

   aa:=[["he",45,123,76,1.0,"4"],["know how",4,9,34,"3.2","5"]]:

   bb:=map2(map,convert,aa,string)
                           bb := [["he", "45", "123", "76", "1.0", "4"], ["know how", "4", "9", "34", "3.2", "5"]]

   with(StringTools):
   map2(map,Has,bb,how)
                           [[true, false, false, false, false, false], [true, false, false, false, false, false]]

hmmm.... that doesn't seem to work properly, I wonder why?  But it's down to a boolean and I'm not sure how to use select to go from there ...  I wonder what's wrong with that?

Okay, yes the presence of the word.  I was trying to use a combination of map map2. 

I thought maybe we could get something like this to work

   aa:=[["he",45,123,76,1.0,"4"],["know how",4,9,34,"3.2","5"]]:

   bb:=map2(map,convert,aa,string)
                           bb := [["he", "45", "123", "76", "1.0", "4"], ["know how", "4", "9", "34", "3.2", "5"]]

   with(StringTools):
   map2(map,Has,bb,how)
                           [[true, false, false, false, false, false], [true, false, false, false, false, false]]

hmmm.... that doesn't seem to work properly, I wonder why?  But it's down to a boolean and I'm not sure how to use select to go from there ...  I wonder what's wrong with that?

Can no one figure it out?  or Maple can't do it?

using

a:=[["he",45,123,76,1.0,"4"],["know how",4,9,34,"3.2","5"]]

Select the sublist that contains how using select.  If not then something else?

 

I thought this was one of the main reasons for launching the new mapleprimes, because of the bad 2d math on the old mapleprimes?

As for giving up, isn't this what everyone's doing?  Hence the great results being seen by the mapleprimes administrators on the new site?  Low negative feedback = site working well

 

I guess I didn't actually ask a question in my latest post. 

So how can you select part of the list in the listlist where one entry is a string of words with spaces? 

I guess I didn't actually ask a question in my latest post. 

So how can you select part of the list in the listlist where one entry is a string of words with spaces? 

@Acer.   I'm using readdata with string.  I then need to parse the data, since it contains floats and strings, so I can use it and parts of the data strings contain spaces. 

The reason for parsing was so that I could use the select and has command to extract specific parts of the list.  Select will not find part of a word if it belongs to a string of words.

For example

aa:=[[find me,hello,3,4],["do not find me",nope,7,8],[find me too, okay,9,3]]

select(has,aa,find)
produces         [[find*me, hello, 3, 4], [find*me*too, okay, 9, 3]]

and cannot pull out the find which is burried in the string.  And if I use StringTools[Has] then all parts of the listlist must be in string form. 

Interestingly as a quick sidenote converting a name with a space to a string Maple inserts a special * character

a:=know how
convert(a,string)
                          "know*how"
And Maple easily parses that.
parse(%)
                            know how

 

@Acer.   I'm using readdata with string.  I then need to parse the data, since it contains floats and strings, so I can use it and parts of the data strings contain spaces. 

The reason for parsing was so that I could use the select and has command to extract specific parts of the list.  Select will not find part of a word if it belongs to a string of words.

For example

aa:=[[find me,hello,3,4],["do not find me",nope,7,8],[find me too, okay,9,3]]

select(has,aa,find)
produces         [[find*me, hello, 3, 4], [find*me*too, okay, 9, 3]]

and cannot pull out the find which is burried in the string.  And if I use StringTools[Has] then all parts of the listlist must be in string form. 

Interestingly as a quick sidenote converting a name with a space to a string Maple inserts a special * character

a:=know how
convert(a,string)
                          "know*how"
And Maple easily parses that.
parse(%)
                            know how

 

I could also convert a to a string with

b:=map2(map,convert,a,string)

Now if b contains a string with a space, your commands for parsing fail.  Also map2(map,parse,b) fails

If for example we changed a to all strings and added a new spaced word in one

a:=[["he","45","123","76","1.0","4"],["know how","4","9","34","3.2","5"]]

we get the error Error, incorrect syntax in parse: missing operator or `;` (9)

How do I get around that?

First 140 141 142 143 144 145 146 Last Page 142 of 162