Page 2 of 2 <12
Topic Options
#66923 - 2002-06-14 01:22 AM Re: Ohms Law - Math routine
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You promised to ease up on the math stuff. [Eek!]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66924 - 2002-06-14 02:59 AM Re: Ohms Law - Math routine
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Oh, I was already plotting to use imaginary numbers ( like 1+ 1i) or writing a DFT in KiXtart [Eek!]
_________________________
There are two types of vessels, submarines and targets.

Top
#66925 - 2002-06-14 10:22 AM Re: Ohms Law - Math routine
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Oops, quote from me:
quote:
Interestingly "0.0+$a/$b" won't work. Due to operator precedence, "$a/$b" is evaluated first, and as an integer expression will result in "1". Adding 0.0 to it will have no effect.
Not quite true. Adding "0.0" to the result will cause the expression to become double, so the variable will become double. The result of "$a/$b" will still be an integer result, so you will end up with an double variable containing an integer result.

quote:
Nice to have a coding/math geek on board.
Nah, I gave up math at our 'A'-level education stage. They started talking about imaginary numbers and that offended my sense of reason. Trigonomentry? I can see where that is useful, but I can make up numbers all day long without tax-payers footing the charge for formal education. [Razz] (Donning flame-proof suit, heh)

BTW Thank-you to the anonymous poster who pushed my votes into double figures [Smile]

Top
#66926 - 2002-06-14 10:31 AM Re: Ohms Law - Math routine
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ridge ( [Big Grin] ),
why can't you see imaginaries useful?
they are nice fictional way of solving everyday fictional problems like how to share 20 apples with 50 in that way that everyone gets 40.

or was it something else...
_________________________
!

download KiXnet

Top
#66927 - 2002-06-14 11:33 AM Re: Ohms Law - Math routine
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Ridge? Good grief [Roll Eyes]

You may call me Dick or Tricky if it's easier, just don't call me late for dinner.

I know imaginary numbers are useful, I'm on a wind-up. Just wanted to point out that far from being a math geek I'm more of a math numpty.

Translations and rotations using matrices make my head hurt.

My math tends towards the more practical - "I have £20 in my pocket. If I get a curry on the way home, how many pints of beer can I afford first?"

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.054 seconds in which 0.025 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org