There is a point. You just happen to be wrong in this instance with regards to C++. Your example is just a liable to suffer from overflow and underflow as the standard since it also uses multiplication and division PLUS you have the added issue of divide by zero to take account of.
FYI I do 3D graphics programming so I do have a clue about this but I guess we'll just have to agree to disagree.
Since when is division in IEEE 754 any more accurate than multiplication? Your example in C++ would be no more accurate than the standard method. Sorry.
If its not on the axis then its just "sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))" obviously calculating the subtractions first. And for 3D you just add in "+ (z2 - z1) * (z2 - z1)". Not sure why you need to re-arrange the equation especially since the normal version contains 2 subtractions and 2 multiplications whereas yours contains 1 division, 2 mults and 1 addition. Can't see how that would be faster.
I bought an electric scooter (not a moped but the sort you stand on). I thought I might be able to use it for commuting short distances but its really only a toy as it runs out of power after only a few miles and it is hopeless on any hills of more than a few degrees incline. And of course once the power runs out you have to push it. An electric bicycle however seems like a good idea.
All that tech and STILL only 30mpg??!
on
The Hybrid Scooter
·
· Score: 2, Insightful
Perhaps you should check out some european or japanese diesel cars which can regularly top 50mpg and even the petrol cars can do 40+. Sorry my friend, but 30mpg in 2006 is a joke and it highlights just how bad a design SUVs really are for normal road transport. Sure , use them if you're a farmer or someone else who needs 4x4 everyday , but buying them purely as a one upmanship on other people or because you've got some sort of insecurity issues in the trouser department is just wrong.
"Once again, Microsoft creates vulnerabilities in its operating system by adding new functionality that the majority of the world is not asking for"
The majority of which world? The USA or the rest of it? Take a trip to the far east and you'll find that IP6 use is booming (unfortunately , can't stand it myself , way too complex to be administered properly by any normal human) so if MS want to stay afloat in that market they need to get IP6 working properly.
"If you don't like the way something is, then change it!"
Yeah , I can really see 10 year olds drafting policies to change the world. Up to a certain age kids just need to learn. End of. If you let kids do what they want you end up with the hippy commune style of teaching where the kids learnt nothing except how to piss about and consequently were hardly qualified to flip burgers aged 18 , never mind get a well paid white collar job.
Doesn't surprise me. This was back in the early 90s. Could even hide files from the sys admin which could lead to a whole heap of issue so I'm not surprised they've removed it.
Was this designed simply an easy way to hide (system?) files in the filesystem or was it for something different entirely? I remember there being a "chmod +/-h" in old (perhaps even current, I no longer use it) versions of HP-UX that would hide files , is this something similar?
"Sure, you could watch the movie, but you're not getting a high definition picture anymore"
Who cares? Most people I know including myself watch a film to see the story, not to go "ooooh , look at how many pixels its got!". I still watch VHS , doesn't bother me at all.
"I think simple changes such as through=>thru, though=>tho, borough=>boro should be widely adapted as they're easy to implement and people already use them widely"
Actually in the UK and other places "borough" is pronounced "bura" , not "burrow" so that would only work for the USA and maybe canada. This is the problem with altering spellings for one version of english.
"As for the metric system - it's much easier."
It might be easier , but its less practical for some things. The imperial system was based around the number 12. Why? Because you can divide 12 by 2,3,4 and 6 and get an integer result. Useful if in a market and dividing up stock to sell. With 10 you can only use 2 and 5. People tend to forget the real reason the imperial system came about , it wasn't just because someone drunk one day though , "hey , I know lets use 12 cos no one else has done it yet!.
You can't speak and listen to a language and conciously decode the rules in your head in real time. By the time you've done that on one sentence the speaker has probably moved on a whole paragraph. You can only learn a language properly by learning it subconciously and just copying how the native speakers speak, whatever the actual reason behind putting word ending A on noun B in case C. This only comes through practice. A LOT of practice. Language rules are of interest to linguists , not people who simply want to learn the language to be able to speak it day to day.
I wouldn't call his current state getting his life back. If fact if he doesn't improve I'd say it was worse than being in a coma. Being a semi dribbling vegetable who has to have someone help him piss does sound like much of a life to me.
"This cracks me up. I've used, oh, pretty darn near every UNIX since V7 and you know what? Stuff moves around, names change, even amongst the classic UNIXen."
Feel free to crack up. I've used lots of unix too: AIX, OSF/1, HP-UX, Dynix, *BSD, Linux, Solaris, Irix and a few others I can't even remember. Yes , all their layouts are different but not by very much and certainly you'd recognise most of the directories. However OSX is the wierdest one I've seen yet.
"suggests the human brain shows far greater potential for recovery and regeneration then ever suspected."
Hardly. This took 19 YEARS. Thats hardly what I'd call potential. Yes its surprising but given that time period who knows what alive but dormant neurons will do on their own. This is unlikely to be an evolved response since in the wild a creature with this level of brain damage would be lucky to survive 19 hours.
Plus a non standard filesystem layout. That IMO makes it unnecessarily harder to use for unix people. And its not like the Macs tradition user base is ever going to delve into the command line filesystem so I'm not 100% why they had to mess about with the layout compared to "normal" unix or linux.
It was on a VERY hot day in a VERY polluted part of Germany in the 1970s.
The sky was a mauve colour.
There is a point. You just happen to be wrong in this instance with regards to C++. Your example is just a liable to suffer from overflow and underflow as the standard since it also uses multiplication and division PLUS you have the added issue of divide by zero to take account of.
FYI I do 3D graphics programming so I do have a clue about this but I guess we'll just have to agree to disagree.
Since when is division in IEEE 754 any more accurate than multiplication? Your example in C++ would be no more accurate than the standard method. Sorry.
Pythagorus's theorum is accurate. Wtf are you talking about?
If its not on the axis then its just "sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))"
obviously calculating the subtractions first. And for 3D you just add in "+ (z2 - z1) * (z2 - z1)".
Not sure why you need to re-arrange the equation especially since the normal version
contains 2 subtractions and 2 multiplications whereas yours contains 1 division, 2 mults
and 1 addition. Can't see how that would be faster.
"calculating the length of a vector using Pythagoras's Theorem in a naive way can cause horrible bugs."
sqrt(x * x + y * y)
Not sure how many ways there are to do that unless you roll your own sqrt() function.
Care to expand on it?
For something that size I'd expect a lot more than 60mpg. Some cars can almost manage that and they must weigh 20 times more.
I bought an electric scooter (not a moped but the sort you stand on). I thought I might
be able to use it for commuting short distances but its really only a toy as it runs out
of power after only a few miles and it is hopeless on any hills of more than a few degrees incline. And of course once the power runs out you have to push it. An electric bicycle however seems like a good idea.
Perhaps you should check out some european or japanese diesel cars which can regularly top 50mpg and even the petrol cars can do 40+. Sorry my friend, but 30mpg in 2006 is a joke and it highlights just how bad a design SUVs really are for normal road transport. Sure , use them if you're a farmer or someone else who needs 4x4 everyday , but buying them purely as a one upmanship on other people or because you've got some sort of insecurity issues in the trouser department is just wrong.
"You can drop a match into it and the match will go out."
Is this the same gasoline that occasionally I use to light a
BBQ which gives nice 2 foot flames when I drop a match on it?
"Once again, Microsoft creates vulnerabilities in its operating system by adding new functionality that the majority of the world is not asking for"
The majority of which world? The USA or the rest of it? Take a trip to the far east
and you'll find that IP6 use is booming (unfortunately , can't stand it myself , way
too complex to be administered properly by any normal human) so if MS want to stay
afloat in that market they need to get IP6 working properly.
"If you don't like the way something is, then change it!"
Yeah , I can really see 10 year olds drafting policies to change the world.
Up to a certain age kids just need to learn. End of. If you let kids do what
they want you end up with the hippy commune style of teaching where the kids
learnt nothing except how to piss about and consequently were hardly qualified
to flip burgers aged 18 , never mind get a well paid white collar job.
Doesn't surprise me. This was back in the early 90s. Could even hide files from
the sys admin which could lead to a whole heap of issue so I'm not surprised they've
removed it.
Was this designed simply an easy way to hide (system?) files in the filesystem
or was it for something different entirely? I remember there being a "chmod +/-h"
in old (perhaps even current, I no longer use it) versions of HP-UX that would hide
files , is this something similar?
"Guffaw. Maybe if one of them is hijacked by terrorists and crashed into the 787 assembly building..."
Thats probably what Douglas thought when Boeing built the first 747. Funny how the DC10 had to be
rushed out to compete.
"Sure, you could watch the movie, but you're not getting a high definition picture anymore"
Who cares? Most people I know including myself watch a film to see the story, not
to go "ooooh , look at how many pixels its got!". I still watch VHS , doesn't bother
me at all.
"I think simple changes such as through=>thru, though=>tho, borough=>boro should be widely adapted as they're easy to implement and people already use them widely"
Actually in the UK and other places "borough" is pronounced "bura" , not "burrow"
so that would only work for the USA and maybe canada. This is the problem with
altering spellings for one version of english.
"As for the metric system - it's much easier."
It might be easier , but its less practical for some things. The imperial system
was based around the number 12. Why? Because you can divide 12 by 2,3,4 and 6 and
get an integer result. Useful if in a market and dividing up stock to sell. With 10 you
can only use 2 and 5. People tend to forget the real reason the imperial system
came about , it wasn't just because someone drunk one day though , "hey , I know
lets use 12 cos no one else has done it yet!.
You can't speak and listen to a language and conciously decode the rules in
your head in real time. By the time you've done that on one sentence the speaker has
probably moved on a whole paragraph. You can only learn a language properly by learning
it subconciously and just copying how the native speakers speak, whatever the actual
reason behind putting word ending A on noun B in case C. This only comes through
practice. A LOT of practice. Language rules are of interest to linguists , not people
who simply want to learn the language to be able to speak it day to day.
Its called Google Earth!
Were there hungry predators nearby him? I don't think so.
I wouldn't call his current state getting his life back. If fact if he doesn't improve
I'd say it was worse than being in a coma. Being a semi dribbling vegetable who has to
have someone help him piss does sound like much of a life to me.
"This cracks me up. I've used, oh, pretty darn near every UNIX since V7 and you know what? Stuff moves around, names change, even amongst the classic UNIXen."
Feel free to crack up. I've used lots of unix too: AIX, OSF/1, HP-UX, Dynix, *BSD, Linux,
Solaris, Irix and a few others I can't even remember. Yes , all their layouts are
different but not by very much and certainly you'd recognise most of the directories.
However OSX is the wierdest one I've seen yet.
"suggests the human brain shows far greater potential for recovery and regeneration then ever suspected."
Hardly. This took 19 YEARS. Thats hardly what I'd call potential. Yes its surprising
but given that time period who knows what alive but dormant neurons will do on their
own. This is unlikely to be an evolved response since in the wild a creature with this
level of brain damage would be lucky to survive 19 hours.
>OS X is really just UNIX + a Mac style GUI.
Plus a non standard filesystem layout. That IMO makes it unnecessarily harder to
use for unix people. And its not like the Macs tradition user base is ever going to
delve into the command line filesystem so I'm not 100% why they had to mess about
with the layout compared to "normal" unix or linux.
Downloading starbucks latest revenues figures?