Newtonian Bowling

Reply
 
LinkBack Thread Tools
  #11 (permalink)  
Old 06-08-2007
Creating
Hypography Staff Member
Administrator
Editor

Join Date: May 2005
Location: Silver Spring, MD, USA
Posts: 4,396
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
Angry 5 pins left - no win

Quote:
Originally Posted by Janus View Post
OKay, how about:
Position(3.5,2)
velocity (.30,1)
The 3, 4, 6, 7, and 8 pins are left standing.
Code:
   c                               d
 
             f
 
 
 
 
 
                   1
 
               2       3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:0

   c                               d
 
 
 
 
 
 
                f
                   1
 
               2       3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:2.703563949598667274

   c                               d
 
 
 
 
 
 
 
                f    1
 
              2        3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:3.408421161479837958

   c                               d
 
 
 
 
 
 
 
 
 
                 f     3     1
 
           4       5       6
 
       7   2   8       9       a
 
   e
Sim T:5.466074591404037957

   c                               d
 
 
 
 
 
 
 
 
 
                       3       1
                 f
           4        5      6
 
       7       8       9       a
 
   e
Sim T:6.160782275673209527

   c                               d
 
 
 
 
 
 
 
 
 
                       3
                 f                1
           4               6
                     5
       7       8       9       a
 
   e
Sim T:6.792207410463846732

   c                               d
 
 
 
 
 
 
 
 
 
                       3
                 f
           4               6
 
       7       8    5  9       a
 
   e
Sim T:7.031174073234487094

   c                               d
 
 
 
 
 
 
 
 
 
                       3
 
           4     f         6
 
       7       8           9   a
 
   e
Sim T:8.873646525264264782

   c                               d
 
 
 
 
 
 
 
 
 
                       3
 
           4               6
                 f
       7       8             9 a
 
   e
Sim T:10.13497354372257228

   c                               d
 
 
 
 
 
 
 
 
 
                       3
 
           4               6
                               a
       7       8  f
 
   e
Sim T:12.27924349590418381

   c                               d
 
 
 
 
 
 
 
 
 
                       3
 
           4               6    a
 
       7       8
 
   e
Sim T:14.83516568196026307

   c                               d
 
 
 
 
 
 
 
 
 
                       3
 
           4               6
 
       7       8
 
   e
Sim T:21.50241199476467797
__________________
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
  #12 (permalink)  
Old 06-09-2007
Questioning

Join Date: Feb 2006
Posts: 489
chendoh is a glorious beacon of lightchendoh is a glorious beacon of lightchendoh is a glorious beacon of lightchendoh is a glorious beacon of lightchendoh is a glorious beacon of light
Re: Newtonian Bowling

CraigD, or if I may call you CD, in the interest of brevitity.

I scanned your post last night 'bout 8:30pm est. an had to be in work at 9pm est.
I did see the download page for the 'terperter @ Free Cache', an will be doing the setup..........give me a couple' a days........SteveY


Ps....Is the 5.2.3mv ver. the one ya pay for?
Reply With Quote
  #13 (permalink)  
Old 06-09-2007
Creating
Hypography Staff Member
Administrator
Editor

Join Date: May 2005
Location: Silver Spring, MD, USA
Posts: 4,396
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
Post Cache versions trivia

Quote:
Originally Posted by chendoh View Post
... I did see the download page for the 'terperter @ Free Cache', an will be doing the setup..........give me a couple' a days........SteveY
Cool.
Quote:
Ps....Is the 5.2.3mv ver. the one ya pay for?
I’m running an older version, 5.0.11. This is because the “client tools” – the “Studio” editor, etc. – for versions 5.0.x and 5.1+ are not compatible with one another’s servers, and I need to use them not only to talk to the free instance of Cache on my PC, but to remotely access ones at several sites where I work that are running 5.0.x.

Everything I post at hypography is pure, ANSI X11.1-1995 standard MUMPS, meaning it will run on practically every implementation of MUMPS written since the early 1990s, and most older versions – though a few of the more memory-hungry ones may have problems on some older versions.
__________________
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
  #14 (permalink)  
Old 06-10-2007
Questioning

Join Date: Feb 2006
Posts: 489
chendoh is a glorious beacon of lightchendoh is a glorious beacon of lightchendoh is a glorious beacon of lightchendoh is a glorious beacon of lightchendoh is a glorious beacon of light
Re: Newtonian Bowling

I DL, and installed 5.2.0.329.1_su, this morning, glad I have DSL, even with that it took 40".

Followed your prompts from post #9, and had my first game of NB just using your code....experimentation awaits!

A question, can the code be saved or does it have to be entered for each new game?
Reply With Quote
  #15 (permalink)  
Old 06-10-2007
Creating
Hypography Staff Member
Administrator
Editor

Join Date: May 2005
Location: Silver Spring, MD, USA
Posts: 4,396
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
Thumbs up Saving MUMPS local symbol data

Quote:
Originally Posted by chendoh View Post
I DL, and installed 5.2.0.329.1_su, this morning, glad I have DSL, even with that it took 40".

Followed your prompts from post #9, and had my first game of NB just using your code....experimentation awaits!
Congratulations! I believe you are the first hypographer other than me with ready access to a MUMPS interpreter

Now that you have a technological edge over the competition (OK, only Jay-qu and Janus so far – clearly the lack of huge cash prizes is making this a rather low-key competition ), you should pretty quickly be able to trail-and-error your way to a winning solution – though likely not before you begin cursing my crude interface for its lack of a “save/restore” function
Quote:
A question, can the code be saved or does it have to be entered for each new game?
Yes, it can easily be saved.

XELCOL4 is, in MUMPS terms a “local symbol”, meaning it persists only as long as your job (terminal session). It’s easy to copy it to a persistent, on-disk “global”, by entering something like this (only needs to be done once, unless changes are made to XELCOL4):
Code:
m ^SAVENB=XELCOL4
Then, each time you start a new terminal session, you can copy it back to its local symbol with this:
Code:
m XELCOL4=^SAVENB
“M” is the abbreviation for the MUMPS command “merge” – you can enter the full keyword “merge” if you like, but most people prefer to use the abbreviations. Note that the only difference between a local and a global is that the latter begins with the special character “^”.

If you want a lot of convenience, you can create a small xecute code program to load and start the game, by entering something like
Code:
s ^playNB="m XELCOL4=^SAVENB x XELCOL4"
Then, to load and start the game, you need only enter (note that MUMPS local and global references are case sensitive, so “^playNB” is not the same as “^PlayNB” or “^playnb”):
Code:
x ^playNB
The global reference you use to store things is MUMPS is up to you – as long as you don’t use one being used for something else, it’s OK. You can tell if a global (such as “^MYGLOBAL”) exists by entering:
Code:
w $d(^MYGLOBAL)
If “0” is displayed, it doesn’t. You can use a single global name to store all things of a certain kind, such as xecute code from hypgraphy, by varying the above code slightly to something like
Code:
m ^HYPOX("XELCOL4")=XELCOL4
and
Code:
m XELCOL4=^HYPOX("XELCOL4")
I personally use a pretty jazzy little collection of utilities to keep a “library” of useful xecute code programs, which has automatic versioning, and basic shared subroutine loading features. It’s anybody’s for the asking, but I think it might be more than you need unless you begin seriously writing and/or managing xecute code programs.
__________________
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
  #16 (permalink)  
Old 06-12-2007
Creating
Hypography Staff Member
Administrator
Editor

Join Date: May 2005
Location: Silver Spring, MD, USA
Posts: 4,396
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
Smile Bump - challenge - hint

Here’s another egregious bump for my poor, unpopular competition thread:

Almost anybody who knows classical mechanics (ie: conservation of momentum and energy) at some point comments that the behavior of frictionless, perfectly elastic collection of bodies is completely deterministic, and can be calculated without much difficulty using paper and pencil. Here’s your chance to prove it!

A hint: if the completely deterministic paper and pencil (or computer equivalent) approach seems like too much work, try just submitting a guess where the ball at least hits the 1 and 2 pins, take note of which pins don’t get hit, and which pins (or the ball) come close to hitting them, and adjust your initial guess slightly so that they are hit. Varying any single one of the 3 inputs – x, h, or v – will in most cases eventually yield a win.

Detailed position and velocity data is available for any time in the simulation – Just let me know if you’d like something more than the rought ASCII “movies” I’ve been providing.
__________________
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
  #17 (permalink)  
Old 06-12-2007
Mercedes Benzene's Avatar
Medicinal Chemist
Hypography Staff Member
Moderator
Editor

Join Date: May 2006
Location: MoCo
Posts: 2,427
Mercedes Benzene has much to be proud ofMercedes Benzene has much to be proud ofMercedes Benzene has much to be proud ofMercedes Benzene has much to be proud ofMercedes Benzene has much to be proud ofMercedes Benzene has much to be proud ofMercedes Benzene has much to be proud ofMercedes Benzene has much to be proud ofMercedes Benzene has much to be proud of
Send a message via AIM to Mercedes Benzene
Re: Newtonian Bowling

Quote:
Here’s another egregious bump for my poor, unpopular competition thread:
I'll make it sticky, so maybe it will become more popular.
I would play along, but it doesn't seem like something I would be good at.
__________________
Moderator -- Chemistry, Biology, Watercooler, Competitions, Architecture.
Reply With Quote
  #18 (permalink)  
Old 06-12-2007
Creating
Hypography Staff Member
Administrator
Editor

Join Date: May 2005
Location: Silver Spring, MD, USA
Posts: 4,396
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
Wink Intuition, persistence, luck, and 111 monkeys

Thanks for the stickification, Mercedes.
Quote:
Originally Posted by Mercedes Benzene View Post
I would play along, but it doesn't seem like something I would be good at.
Absent detailed calculation, intuition, persistence, and luck count in this game. Keep in mind that if 111 monkey tried, at random one should get a strike – maybe more, as monkeys do have pretty human-like mechanical intuition.
__________________
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
  #19 (permalink)  
Old 06-12-2007
Jay-qu's Avatar
Ancora Imparo
Hypography Staff Member
Moderator
Editor
Gallery Curator
Basic Subscription
Sponsor
2D Memory Champion!
Join Date: Feb 2005
Location: Australia
Posts: 5,603
Blog Entries: 1
Jay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant futureJay-qu has a brilliant future
Re: Intuition, persistence, luck, and 111 monkeys

Can you put spin on the ball

ok modification to my guess:
position (4,2)
velocity (.2,1.5)
__________________
Jay-qu
::Hypography Moderator of..
Chemistry, Physics & Mathematics, Astronomy & Cosmology, Space and Technology & gadgets Forums

Einstein said that if quantum mechanics is right, then the world is crazy. Well, Einstein was right. The world is crazy.
-Daniel Greenberger

Physics Guides - Physics Resources and help
Reply With Quote
  #20 (permalink)  
Old 06-12-2007
Creating
Hypography Staff Member
Administrator
Editor

Join Date: May 2005
Location: Silver Spring, MD, USA
Posts: 4,396
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
Unhappy 3 pins standing - no win

Quote:
Originally Posted by Jay-qu View Post
Can you put spin on the ball
Not yet, though it would be interesting to create a body type with angular momentum and a gravity-friction coefficient. It’s on my todo list.
Quote:
ok modification to my guess:
position (4,2)
velocity (.2,1.5)
Left the 4, 7, and 10 pins (a classic split, in real bowling terms):
Code:
   c                               d
 
               f
 
 
 
 
 
                   1
 
               2       3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:0

   c                               d
 
 
 
 
 
 
                f
                   1
 
               2       3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:1.75045160074368274

   c                               d
 
 
 
 
 
 
 
               f     1
 
              2        3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:2.274619258730680725

   c                               d
 
 
 
 
 
 
 
               f
                      1
              2        3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:2.492754863526280855

   c                               d
 
 
 
 
 
 
 
                            1
 
                f
 
           4       5    3  6
 
       7       8       9       a
 
   e
Sim T:3.947538702882081719

   c                               d
 
 
 
 
 
 
 
                             1
 
 
                f
           4       5       6
                        3
       7       8      9        a
 
   e
Sim T:4.32288138685061816

   c                               d
 
 
 
 
 
 
 
                              1
 
 
                f
           4       5       6
                         3
       7       8      9        a
 
   e
Sim T:4.606723954709696068

   c                               d
 
 
 
 
 
 
                                 1
 
 
 
 
           4   f   5       6
 
       7      8      9    3    a
 
   e
Sim T:5.252464113102110217

   c                               d
 
 
 
 
 
 
 
 
 
 
 
           4   f   5       6
 
       7      8      9     3   a
 
   e
Sim T:5.630775829456034979

   c                               d
 
 
 
 
 
 
 
 
 
 
 
           4        5      6
                f
       7                       a
                    9       3
   e
Sim T:6.333922984969319646

   c                               d
 
 
 
 
 
 
 
 
 
 
 
           4        5      6
                f
       7                       a
                    9
   e
Sim T:6.433163198212796601

   c                               d
 
 
 
 
 
 
 
 
 
 
 
           4         5     6
 
       7        f              a
 
   e
Sim T:7.814896747684310909

   c                               d
 
 
 
 
 
 
 
 
 
 
 
           4           5   6
 
       7                       a
 
   e
Sim T:10.13426662809773641

   c                               d
 
 
 
 
 
 
 
 
 
 
                           6
           4             5
 
       7                       a
 
   e
Sim T:12.74276834571026973

   c                               d
 
 
 
 
 
 
 
 
                                6
 
 
           4
 
       7                       a
 
   e
Sim T:26.93818364451137871

   c                               d
 
 
 
 
 
 
 
 
 
 
 
           4
 
       7                       a
 
   e
Sim T:31.91081658739413835
__________________
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newtonian mechanics kolahal_b Science Projects and Homework 0 10-03-2006
newtonian mechanics kolahal_b Science Projects and Homework 0 08-02-2006
newtonian mechanics kolahal_b Science Projects and Homework 2 08-01-2006
Newtonian physics: torque on a planet sun system Tim_Lou Physics and Mathematics 2 05-20-2006

» Current Poll
Do you read popular science books?
Yes, a few each year - 60.00%
6 Votes
Yes, but very rarely - 10.00%
1 Vote
Yes, most of the time - 20.00%
2 Votes
No - 10.00%
1 Vote
Total Votes: 10
You may not vote on this poll.

All times are GMT -8. The time now is 03:25 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network