Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

So first of all this is what I did and maybe someone can tell me what I've done wrong.

I downloaded the application from the cloud page so now I have the file Google+Maps+and+Geocoding.maple on my C drive.

Then I installed it
PackageTools:-Install("c:/Google+Maps+and+Geocoding.maple") # the package was installed

I can access the package
with(GoogleMaps)
                                       

GetMap(location = "615 Kumpf Drive, Waterloo, Ontario", zoomlevel = 16, maptype = "hybrid", size = [500, 300])

                                                                    

Ok, so it appears we need an apikey

so I used showstat(GetMap) to show the underlying commands in GetMap and added some api key in a new proc named GetMap1 with the added apikey

GetMap1 := proc({apikey::string := "default", embedimage::identical(true,false) := true, latitude::float := 52.462495, location::string := "default", longitude::float := -1.813473, maptype::identical("hybrid","satellite","terrain","roadmap") := "hybrid", scale::And(posint,Range(0,3)) := 1, size::list := [640, 640], style::And(posint,Range(0,82)) := 1, zoomlevel::And(posint,Range(0,23)) := 10})
      if location = "default" then
          GoogleMaps:-DownloadMap(('lat') = latitude,('lon') = longitude,('mapType') = maptype,('zoomLevel') = zoomlevel,('mapsize') = size,('mapscale') = scale,('mapstyle') = style,('returnimageorplot') = embedimage,('api_key') = "entered api key here in quotes")
       else
          GoogleMaps:-DownloadMap(('mapcenter') = location,('mapType') = maptype,('zoomLevel') = zoomlevel,('mapsize') = size,('mapscale') = scale,('mapstyle') = style,('returnimageorplot') = embedimage,('api_key') = "entered api key here in quotes")
       end if
end proc

Then initiated the new command

GetMap1(location = "615 Kumpf Drive, Waterloo, Ontario", zoomlevel = 16, maptype = "hybrid", size = [500, 300])

 

Was the API key format entered incorrectly?   Why is DownloadMap all of a sudden not a command in the GoogleMaps package?

 

 

This application appears not to work anymore.  Is it now a pay service? 

All the commands return, 0.

Have a look at this post and see if the solutions here will help

https://www.mapleprimes.com/questions/211408-Possible-Bug-In-Colorscheme-Option

 

Fails in 2017 as well. 

Should look like

without the scaletorange

That's right, I forgot Search finds only one occurrence or find one occurrence then break out of a loop. 

Actually it was a procedure for returning a list of either the first or third quartile data points, I don't think there was a command in the the Statistics package to do such a thing.  But since either quartiles don't include the median (second quartile) I would have to include the median point or points and remove one of them (at least I think that would be the easiest way to do it).  The value of course would always be present. 

@Carl Love @Kitonum Thanks to both.  Must be a bug.

I agree as well.  If a Maple related question has been posted and Maple knowledge added, deletion of the post should only be allowed by the site administrator.

I believe the part of confusion came from the differentiation.  My guess is Rouben just happen to miss that part in the help. 

 declare(y(t)) will show only y(t) as y, no other variable as a function of another variable will be shortend.  Differentiating the variable is a different story.  For differentiation the help file for declare states This scheme also displays all differentiation variables as indices.

Thanks. 

In my opinion, if I plot vector <1,1,1> and <9,9,9> I would expect the vectors to be drawn the same size.  .. actually the default setting buries vector <1,1,1> inside vector <9,9,9>. 

I wonder what the reason was behind setting the default of the vectors width relative to their lengths?

There are three different types of population distrubutions - uniform, random, and clumped.  Not exactly sure what you need but you can use Maple's Sample command from the Statistics package.

Check maple's help for Sample, it should be what you're looking for.

 

@acer Thanks

Nice to see the different ways.  I think when I was trying ways to compact the solution using normal or something it expanded the square under the radical. 

 

@Kitonum thanks for that.

Ok I got it. 

collect(simplify(a2),diff(x(t),t))  then applying the completesquare again will get it.  Thanks

Student[Precalculus][CompleteSquare](%);


Now how to reorder so the negative term is second?

 

 

First 7 8 9 10 11 12 13 Last Page 9 of 139