Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematics Notation Question

  1. Nov 5, 2015 #1
    Would it not be more efficient to write modular functions using the text formatting of logarithms? The modulus would be in subscript after "mod", and the expression to be used would be written after...

    Ex. modnf(x)
     
  2. jcsd
  3. Nov 5, 2015 #2

    fresh_42

    Staff: Mentor

    just move the number in an array and you can address the single digits; the comfort depends on the programming language you use
     
  4. Nov 5, 2015 #3

    jedishrfu

    Staff: Mentor

    While I think you could use this notation, however mathematicians view modulo as an operator and not a function. Also subscripts in mathematics are used for coordinate indexing or row/column indexing and your notation would be confusing in those situations.

    Programming languages tend to define a general purpose method for modulo where the first argument is the number and the second is the base for the modulo operation. Even in log10 some programming languages use log() for base 10 and ln() for natural logs.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematics Notation Question
  1. Notation question (Replies: 4)

Loading...