Author Topic: Axiom Requests  (Read 96061 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axiom Requests
« Reply #135 on: November 27, 2011, 07:54:28 pm »
Truncation limits the number of digits to the right of the decimal point to a certain number.  I believe he is asking how many digits you want to truncate to.
« Last Edit: November 27, 2011, 07:55:08 pm by Builderboy »

Offline jacobly

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 205
  • Rating: +161/-1
    • View Profile
Re: Axiom Requests
« Reply #136 on: November 27, 2011, 07:55:56 pm »
Perhaps a floating-point-math Axiom, with a function to store a float to an axevar?
How can a float fit in a single axe var? Unless you want truncation, but then you would have to specify how you want it truncated.
There is only one kind of truncation. It's where you chop off the decimal portion. Or, to put it another way, round towards 0
By how you want it truncated, I mean what do you want it truncated to.
Truncation is a mathematical function. You truncate to a number. To put it in BASIC, iPart()
But what kind of number would you like? An unsigned integer, a signed integer, 256 inflation, some form of signed 256 inflation, bcd, a pointer, a handle...

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axiom Requests
« Reply #137 on: November 27, 2011, 07:56:09 pm »
http://en.wikipedia.org/wiki/Truncation limits the number of digits to the right of the decimal point to a certain number.  I believe he is asking how many digits you want to truncate to.
16-bit integer would be the easiest to deal with and program (methinks.) Besides, if I want 8.8, I can multiply the float by 256 before converting it.
And there is no difference between signed and unsigned. For example: -1 and 65535 would both turn out to be 1111111111111111b. 65536 would be 0. Also, sin() and cos() would be super useful. And square roots, too.
« Last Edit: November 27, 2011, 08:01:00 pm by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axiom Requests
« Reply #138 on: November 27, 2011, 07:59:32 pm »
Ahhhh i see, i thought you wanted an Axiom to use the 2 bytes in each AxeVar as floating point data, so we could have native FP in Axe  ::)  If all you want to do is convert TiOS Floating Point variables into Axe variable (while truncating all the decimal points) you can use the already build in float{} command :D

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axiom Requests
« Reply #139 on: November 27, 2011, 08:02:02 pm »
Ahhhh i see, i thought you wanted an Axiom to use the 2 bytes in each AxeVar as floating point data, so we could have native FP in Axe  ::)  If all you want to do is convert TiOS Floating Point variables into Axe variable (while truncating all the decimal points) you can use the already build in float{} command :D
But I can't do math with them in that state. I want [sings]maaaaaaaath![/sings]
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline jacobly

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 205
  • Rating: +161/-1
    • View Profile
Re: Axiom Requests
« Reply #140 on: November 27, 2011, 08:02:05 pm »
http://en.wikipedia.org/wiki/Truncation limits the number of digits to the right of the decimal point to a certain number.  I believe he is asking how many digits you want to truncate to.
16-bit integer would be the easiest to deal with and program (methinks.) Besides, if I want 8.8, I can multiply the float by 256 before converting it.
But what do you want me to do with a floating-point number like 100000?

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axiom Requests
« Reply #141 on: November 27, 2011, 08:02:32 pm »
http://en.wikipedia.org/wiki/Truncation limits the number of digits to the right of the decimal point to a certain number.  I believe he is asking how many digits you want to truncate to.
16-bit integer would be the easiest to deal with and program (methinks.) Besides, if I want 8.8, I can multiply the float by 256 before converting it.
But what do you want me to do with a floating-point number like 100000?
Wrap around, so it'd be mod 65536
« Last Edit: November 27, 2011, 08:03:03 pm by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axiom Requests
« Reply #142 on: November 27, 2011, 08:05:45 pm »
Oh i believe there is already an Axiom somewhere that does math to TiOS floating numbers, I don't know where it went tho D:

Offline jacobly

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 205
  • Rating: +161/-1
    • View Profile
Re: Axiom Requests
« Reply #143 on: November 27, 2011, 08:14:18 pm »
http://en.wikipedia.org/wiki/Truncation limits the number of digits to the right of the decimal point to a certain number.  I believe he is asking how many digits you want to truncate to.
16-bit integer would be the easiest to deal with and program (methinks.) Besides, if I want 8.8, I can multiply the float by 256 before converting it.
But what do you want me to do with a floating-point number like 100000?
Wrap around, so it'd be mod 65536
Going by that, I would assume that you want unsigned integers... but what if the floating-point number is negative?

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axiom Requests
« Reply #144 on: November 27, 2011, 08:28:34 pm »
http://en.wikipedia.org/wiki/Truncation limits the number of digits to the right of the decimal point to a certain number.  I believe he is asking how many digits you want to truncate to.
16-bit integer would be the easiest to deal with and program (methinks.) Besides, if I want 8.8, I can multiply the float by 256 before converting it.
But what do you want me to do with a floating-point number like 100000?
Wrap around, so it'd be mod 65536
Going by that, I would assume that you want unsigned integers... but what if the floating-point number is negative?
represent it as it would be if it were a negative two's complement 16-bit integer.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline jacobly

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 205
  • Rating: +161/-1
    • View Profile
Re: Axiom Requests
« Reply #145 on: November 27, 2011, 08:35:34 pm »
http://en.wikipedia.org/wiki/Truncation limits the number of digits to the right of the decimal point to a certain number.  I believe he is asking how many digits you want to truncate to.
16-bit integer would be the easiest to deal with and program (methinks.) Besides, if I want 8.8, I can multiply the float by 256 before converting it.
But what do you want me to do with a floating-point number like 100000?
Wrap around, so it'd be mod 65536
Going by that, I would assume that you want unsigned integers... but what if the floating-point number is negative?
represent it as it would be if it were a negative two's complement 16-bit integer.
ok... but what about -32769?

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axiom Requests
« Reply #146 on: November 27, 2011, 09:34:46 pm »
* Freyaday shrugs
Well, there's a float{} command that can do the conversion (which I just remembered) so don't worry about it.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axiom Requests
« Reply #147 on: November 27, 2011, 09:40:26 pm »
And then you can use this for the mathematics :D

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axiom Requests
« Reply #148 on: November 28, 2011, 10:30:39 pm »
Can someone whip me up an axiom that is similar to the basic date and time commands?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Axiom Requests
« Reply #149 on: December 07, 2011, 04:11:25 pm »
Sorry, i know nothing of asm, but in the calculators (84+ family) that have the crystal timer, have their data stored somewhere.  If you can find the location of that, you could simply read from the location.  Might like to try a different section.

(i might be wrong about everything)
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________