Christopher2222

4870 Reputation

22 Badges

10 years, 278 days

MaplePrimes Activity


These are replies submitted by Christopher2222

Yes I know he's still around.  I'm just hoping his valueable contributions weren't erased when (it appears) he removed his account.

In this case, would it be ideal if Maple just calculated to a few digits beyond the setting by the user?  Something like having internal guard digits.

This way calculations that come up would only have 1 digit possibly changing when more Digits are added rather than say 5 or so digits changing. 

Wether it's right or wrong or it is the way it is.  I'd rather see only one digit changing. 

It works in Maple 2018.  Since Carl Love was unable to duplicate your error, then it is most likely there is something wrong with your Maple version. 

@Konstantin@ Upload the worksheet and we can execute to see if the same error appears from your generated worksheet. 

Also try your code in worksheet mode and see if you get the same result. 

It's possible there are errors being generated in your worksheets.

Sorry, how was the y coordinate of the tangent circles found?

@tomleslie thanks for showing how to do it using the geometry package.

Turns out I needed to anchor some constraints in Geometry Expressions.  I am getting proper results now.  The output Geometry Expressions gives

@mmcdara thanks. 

I actually entered this into Geometry Expressions but it sometimes spit out some monstrous equation.  And depending on how I initially set everything up, it would just sit there calculating an output with no response. 

Thanks for the answers vv and tomleslie

Very interesting Samir.  Thanks for the insight Maple can give.

It would be interesting to see how one would start from scratch, take any book, and have Maple do everything from the start - find the characters and create the data.

An example epic novel would be the Malazan book of the Fallen which has over 700 characters.  The world of Malazan makes the Game of Thrones pale in comparison.

 

edited

adding apikey="your api key" to the GoogleMaps commands will continue have the worksheet work normally. 

However FindLonLat doesn't appear to work - the underlying commands do not work.

According to this table

it appears that it is not a free service.  Or am I missing something?  is it only pay for commercial uses and not individual?

However, google gives you a $200 credit per month to play with.  For an individual just playing around, it will most likely end up free anyways.  However, just have to get the application working first.

@acer the opaquemodule=false doesn't seem to work.  But also I'm not sure if any part of the Geocoding is free. 

After setting opaquemodule=false the command just returns the DownloadMap( some content) but it could be the wrong api value. 

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.

1 2 3 4 5 6 7 Last Page 1 of 132