Photon wavelength calculation

  • benthecrazy
    12th Mar 2014 Member 2 Permalink

    These are devices that can add, subtract and multiply the numbers stored in the wavelengths of the photons. The devices make use of multiple FILT-modes such as AND, OR, XOR, set colour, red shift and blue shift in order to perform the calculation. They are not very fast but small instead and depending on the calculation very colourful.

     

     

    Maybe I'm going to include them in a calculator but then I'd need to come up with a fast dec>bin converter and a fast bin>dec converter.

     

    Tell me what you think!

    Edited once by benthecrazy. Last: 17th Mar 2014
  • mniip
    12th Mar 2014 Developer 0 Permalink
    @benthecrazy (View Post)
    A fast binary to decimal converter is double dabble. Google it.
    Decimal to binary is just multiplying by 10102, I'm afraid.

    Other than that, some smart thinking you got there.
    Edited once by mniip. Last: 12th Mar 2014
  • ivel236
    15th Mar 2014 Member 0 Permalink
    Wow this is brilliant. Though I have to admit.... I don't really understand everything at work here... What is the relationship between the ctype and binary? How do you determine the binary value of a certain ctype?
  • minecraft-physics
    15th Mar 2014 Member 0 Permalink

    Every ctype is actually a macro for an element's ID, which corresponds to the binary of the wavelength

  • benthecrazy
    17th Mar 2014 Member 0 Permalink

    @mniip (View Post)

     Thanks, I already had a look at that!

     

    @minecraft-physics (View Post)

     In the latest version of TPT the wavelengths of photons are displayed as decimal numbers which makes it easier to check the results of the calculation.

  • PTuniverse
    20th Mar 2014 Member 0 Permalink

    Is floored division impossible? (For example: 36 floor divided by 7 is 5. It's basically division but with no remainder)

    Edited once by PTuniverse. Last: 20th Mar 2014