Go to Post Lets have fun this year - Wayne Doenges [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-02-2013, 09:34
rai337 rai337 is offline
Registered User
FRC #1574 (Miscar1574)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: israel
Posts: 26
rai337 is an unknown quantity at this point
Fun Fact

Did you know? When you compare 0 with NaN (Not a Number) in labview, the result is a broken shooter.
please don't try it at home (i'm assuming that your home is the lab.)
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2013, 10:22
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,730
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Fun Fact

Just as long as you're not dividing by zero. Then your robot collapses into a pocket universe to preserve reality.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2013, 10:24
rai337 rai337 is offline
Registered User
FRC #1574 (Miscar1574)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: israel
Posts: 26
rai337 is an unknown quantity at this point
Re: Fun Fact

we used acos(1.04).. same affect basically..
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2013, 10:47
dodar's Avatar
dodar dodar is offline
Registered User
FRC #1592 (Bionic Tigers)
Team Role: Alumni
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Cocoa, Florida
Posts: 2,928
dodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond reputedodar has a reputation beyond repute
Re: Fun Fact

Quote:
Originally Posted by Kevin Sevcik View Post
Just as long as you're not dividing by zero. Then your robot collapses into a pocket universe to preserve reality.
So, 229 uses a special version of labview?
__________________
1592(Student and Mentor) 2007-Present

Blue Banners: 2008 Colorado, 2012 Orlando, 2012 South Florida, 2014 Orlando, 2015 Buckeye

Mechanical Engineering - University of Central Florida(Class of 2016)
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2013, 11:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,862
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Fun Fact

Quote:
Originally Posted by dodar View Post
So, 229 uses a special version of labview?
Of course not, they're in a universe all their own.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 24-02-2013, 12:07
SenorZ's Avatar
SenorZ SenorZ is online now
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 937
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Fun Fact

This is most likely the result of the oxygen in your robot bag running out... this is why student programmers should not be bagged with the robot.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-02-2013, 14:30
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Fun Fact

Equally fun fact:
When you compare anything and one of the elements is NaN, the result is false. Nan > 0 is false and Nan < 0 is false and Nan == 0 is false.

And it isn't just LV. This is what IEEE 754 says to do. And it makes sense, but at the same time will surprise you at times when you least expect it -- possibly causing shooters to misbehave, wormholes to form, etc.

Greg McKaskle

Last edited by Greg McKaskle : 24-02-2013 at 14:32. Reason: button slip
Reply With Quote
  #8   Spotlight this post!  
Unread 24-02-2013, 15:35
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Fun Fact

If you do decide to experiment with exploiting wormholes, remember that game pieces from past or future games should not be allowed to enter the playing field. There's no rule against it yet, but R01 is always in force.
Reply With Quote
  #9   Spotlight this post!  
Unread 24-02-2013, 15:49
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,730
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Fun Fact

Quote:
Originally Posted by Greg McKaskle View Post
Equally fun fact:
When you compare anything and one of the elements is NaN, the result is false. Nan > 0 is false and Nan < 0 is false and Nan == 0 is false.

And it isn't just LV. This is what IEEE 754 says to do. And it makes sense, but at the same time will surprise you at times when you least expect it -- possibly causing shooters to misbehave, wormholes to form, etc.

Greg McKaskle
Corollary: The smart programmer uses this fact to some advantage. If there's a possibility of you getting a NaN as result, then make sure your false case is what you'd want to run if you're processing a NaN. Makes things a lot more reliable.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #10   Spotlight this post!  
Unread 24-02-2013, 15:53
toastnbacon toastnbacon is offline
Registered User
AKA: James
FRC #3169 (Saintborgs)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Edmond
Posts: 97
toastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the roughtoastnbacon is a jewel in the rough
Re: Fun Fact

Quote:
Originally Posted by Kevin Sevcik View Post
Just as long as you're not dividing by zero. Then your robot collapses into a pocket universe to preserve reality.
That's a mistake you only have to make twice...
__________________
"This must be what going insane feels like."-Simon Tam, Firefly
Reply With Quote
  #11   Spotlight this post!  
Unread 24-02-2013, 23:33
JCharlton's Avatar
JCharlton JCharlton is offline
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 123
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Fun Fact

In LabVIEW there's a block to check if isNaN. If I'd known then what I know now.
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
Reply With Quote
  #12   Spotlight this post!  
Unread 25-02-2013, 22:14
sur sur is offline
Registered User
AKA: Sujit Rao
FRC #3324 (Metrobots)
Team Role: Alumni
 
Join Date: May 2012
Rookie Year: 2011
Location: Ohio
Posts: 12
sur is an unknown quantity at this point
Re: Fun Fact

Quote:
Originally Posted by Greg McKaskle View Post
Equally fun fact:
When you compare anything and one of the elements is NaN, the result is false. Nan > 0 is false and Nan < 0 is false and Nan == 0 is false.

And it isn't just LV. This is what IEEE 754 says to do. And it makes sense, but at the same time will surprise you at times when you least expect it -- possibly causing shooters to misbehave, wormholes to form, etc.
Apparently this is how IsNaN is implemented in C#: http://stackoverflow.com/a/1145462.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi