Author Topic: Math functions  (Read 6064 times)

0 Members and 1 Guest are viewing this topic.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Math functions
« on: February 09, 2011, 03:26:01 pm »
If you would like to see non-math related things, like string operations, just mention them...

...Unless it involves division by 0. I don't want to create a wormhole in my Prizm.  :P
« Last Edit: February 09, 2011, 03:30:42 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Math functions
« Reply #1 on: February 09, 2011, 03:37:46 pm »
I voted. ;-)

Offline holmes221b

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 282
  • Rating: +13/-1
  • RESISTANCE IS FUTILE.
    • View Profile
    • My Livejournal
Re: Math functions
« Reply #2 on: February 09, 2011, 04:08:40 pm »
I haven't a clue what RNG is...
*light bulb turns on*
Oh, wait, that's Random Number Generator, isn't it?

Spoiler For "Projects":
Spoiler For "Because Everyone Else Is":
*Sigh*
can we keep this on topic? The topic is about what the big thing might be, NOT SEX

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Math functions
« Reply #3 on: February 09, 2011, 04:15:13 pm »
I haven't a clue what RNG is...
*light bulb turns on*
Oh, wait, that's Random Number Generator, isn't it?
Quite right!  Although now that I think about it, the secure one would be kinda cool, too.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Math functions
« Reply #4 on: February 09, 2011, 07:10:49 pm »
Everyone wants calculus...  :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline holmes221b

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 282
  • Rating: +13/-1
  • RESISTANCE IS FUTILE.
    • View Profile
    • My Livejournal
Re: Math functions
« Reply #5 on: February 09, 2011, 07:58:35 pm »
Calculus is very important.

Spoiler For "Projects":
Spoiler For "Because Everyone Else Is":
*Sigh*
can we keep this on topic? The topic is about what the big thing might be, NOT SEX

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Math functions
« Reply #6 on: February 09, 2011, 08:24:28 pm »
Yeah, but I'm not sure how you pass a function to another function in an assembly program.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Math functions
« Reply #7 on: February 09, 2011, 08:36:27 pm »
You just leave the result either in a register or in memory and then the next function uses that. I imagine that you could set up a spot in RAM that holds the address of where the arguments are, but that isn't very useful. Also, I don't know how the stack works on the Prizm, but if it doesn't push PC onto the stack when you use CALL, then you could pass arguments through the stack.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Math functions
« Reply #8 on: February 09, 2011, 08:55:38 pm »
It pushes PC and SR onto the stack, so I'd have to pop those and repush them afterwards.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Math functions
« Reply #9 on: February 09, 2011, 09:00:11 pm »
Eww, I don't like that because sometimes I forget and then I crash my calc :(

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Math functions
« Reply #10 on: February 09, 2011, 09:02:04 pm »
I'm not sure what happens if I screw up the stack on my Prizm. I've never used it. Let's try it  >:D
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline holmes221b

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 282
  • Rating: +13/-1
  • RESISTANCE IS FUTILE.
    • View Profile
    • My Livejournal
Re: Math functions
« Reply #11 on: February 10, 2011, 10:31:52 am »
I'm not sure what happens if I screw up the stack on my Prizm. I've never used it. Let's try it  >:D
Take photos, I wanna see if it goes boom.

edit: oh wait, that only happens if you manage to divide by zero successfully...
« Last Edit: February 10, 2011, 10:32:20 am by holmes221b »

Spoiler For "Projects":
Spoiler For "Because Everyone Else Is":
*Sigh*
can we keep this on topic? The topic is about what the big thing might be, NOT SEX

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Math functions
« Reply #12 on: February 11, 2011, 12:43:01 pm »
I am confused as to which place these math functions are going to be added?  There really isn't anything explaining O.o

Offline holmes221b

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 282
  • Rating: +13/-1
  • RESISTANCE IS FUTILE.
    • View Profile
    • My Livejournal
Re: Math functions
« Reply #13 on: February 11, 2011, 01:29:44 pm »
I think it's a poll?

Spoiler For "Projects":
Spoiler For "Because Everyone Else Is":
*Sigh*
can we keep this on topic? The topic is about what the big thing might be, NOT SEX

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Math functions
« Reply #14 on: February 11, 2011, 01:32:56 pm »
right, but for which purpose?  Just math in general?