Christopher2222

5785 Reputation

24 Badges

16 years, 349 days

MaplePrimes Activity


These are questions asked by Christopher2222

There was a streamlines question that has dissappeared.  Where did it go?  Why was it deleted?

I only just noticed the Start.mw file being always number 1 in my Recent document list.  I don't recall it being there, ever, and I don't think it should.  Why is it there now?  Anyone else have this?

I using Maple 18 (not Maple 2018) and I'm trying to figure out how to grab earthquake data from earthquakescanada database from here http://www.earthquakescanada.nrcan.gc.ca//stndon/NEDB-BNDS/bull-en.php using the HTTP requests.

First I used the default search within the web browser, and get a new address which I enter as the URL

HTTP:-Get("http://www.earthquakescanada.nrcan.gc.ca//stndon/NEDB-BNDS/bull-en.php?time_start=2018%2F04%2F23+22%3A47%3A00&time_end=2018%2F05%2F23+22%3A47%3A00&depth_min=0&depth_max=100&mag_min=-3&mag_max=9.9&shape_type=region&radius_center_lat=50&radius_center_lon=-95&radius_radius=1000&region_north=90&region_south=41&region_east=-40&region_west=-150&eq_type_L=1&display_list=1&list_sort=date&list_order=a&tpl_output=html&submited=1"

It takes a long time to download the information and would require HTML surgery but changing the option for output to txt or csv, it's faster and in a much more readable form.  However it's not in a table or Array format, it has become a string.

Is there any way to use ImportMatrix, or ImportData to get a better format of the information?  - both give errors in Maple18.  Or am I stuck trying to use string surgery in Maple 18?  The Import command isn't available until Maple 2016 (I don't mean the Import command within ExcelTools) and I believe that works in Maple 2018 however I'm at a loss for trying to use it in Maple 18. 

When I import a csv file, (ie. a:=Import("c:/test.csv") the first column is a time stamp column.  So when I use the command a[1] the timestamp column is displayed as well as the next column which is I guess 1.  Similarily a[2] gives timestamp column plus column 3.  So it looks like timestamp column is column 0?  But a[0] gives invalid index error. 

So when I convert(a,Array) the first timestamp column is missing. 

Am I not understanding DataFrames correctly or is Maple not manipulating it correctly.  Perhaps it's some other issue that I'm not understanding.  Any ideas?  Why doesn't that first column appear in the convert but yet shows up in the original?

Substituting variables for numbers doesn't always work in some situations.  For example.

a:=sqrt(6)/6
                            

subs(6=b,a)
                        

 

 

First 16 17 18 19 20 21 22 Last Page 18 of 94