mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2015-09-06, 02:27   #1
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2×29×137 Posts
Default Annoying Ambient Air Anomaly Analyzed and Answered!

We are posting this in Miscellaneous Math because it is a very trivial thing, but it stumped us for a very long time!

We ride our motorcycle many hours a week. It has an ambient air temperature display, which is pretty convenient. But, it only displays certain values. For some reason it skips some numbers as the temperature goes up or down.

We wondered about this for far too long (Weeks!) until we came across an answer to this vexing dilemma.

The (°F) numbers we have seen are: 77, 78, 80, 82, 84, 86, 87, 89, 91, 93, 95, 96, 98, 100, 102, 104, 105 and 107. (Yes, it has been a hot summer!)

The motorcycle was made in Canada. Most likely the computer that manages the motorcycle uses metric units of measurement. So, if the computer and sensors are dealing in °C but we ask it to display in °F there has to be some rounding error, especially since the display only shows integers.

So we made a simple table and messed around with the list of numbers that we saw actually displayed. Rounding the numbers got us close but certain values were still wrong. After some thought we figured out that the computer was using the floor function instead of the round function.

In the table below, we assume the computer is working from °C, so column A is a sequential list of numbers in °C . Column B is Column A converted to °F with one decimal point. Column C is column B rounded and Column D is Column B rounded down. Column D matches what we see on the display.

We have no idea why they chose "floor" instead of "round".


Personally, we think it is a bit inelegant to skip numbers, but we figure normal people will never notice it.

Attached Thumbnails
Click image for larger version

Name:	can-am.png
Views:	546
Size:	12.9 KB
ID:	13035  
Xyzzy is offline   Reply With Quote
Old 2015-09-06, 03:10   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

23FF16 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
After some thought we figured out that the computer was using the floor function instead of the round function.
I would submit that instead: They are using the INT() function or otherwise just lopping off the decimals. While this might not be noticeable in your area right now... In Winnipeg during the winter you might notice it. :rajula:
Uncwilly is offline   Reply With Quote
Old 2015-09-06, 05:53   #3
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2·41·113 Posts
Default

The Nissan Altima and Toyota Camry temperature displays have always done exactly the same (floor or int).
Because we don't care about mpg or any other types of display we always have our settings on ambient T, so we noticed for years the same effect as Mike.

Actually, for MPG display, values are skipped much the same way (because internally they are probably in L/100km.)
Batalov is offline   Reply With Quote
Old 2015-09-06, 06:47   #4
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

33×61 Posts
Default

To avoid those problems just switch to the international units... What backward place still uses miles, gallons and other obsolete units ? The US of A are members of the International Bureau of Weights and Measures (BIPM).

Jacob
S485122 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
This thread, annoying as it is jasong Soap Box 90 2013-05-22 00:00
ecm anomaly? swishzzz Factoring 14 2012-02-01 17:26
stupidest question you've ever answered science_man_88 Lounge 11 2011-10-10 06:16
Annoying forum behaviour Brian-E Forum Feedback 53 2011-08-24 12:42
v4_computer vs. Machine Name anomaly ADBjester PrimeNet 5 2008-11-12 17:07

All times are UTC. The time now is 01:31.

Wed Jan 27 01:31:10 UTC 2021 up 54 days, 21:42, 0 users, load averages: 2.82, 3.05, 3.40

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.