Modulo Notation: Is There a More Efficient Way to Represent Modular Functions?

  • Context: Undergrad 
  • Thread starter Thread starter Chrono G. Xay
  • Start date Start date
  • Tags Tags
    Mathematics Notation
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 1K views
Chrono G. Xay
Messages
91
Reaction score
3
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)
 
Mathematics news on Phys.org
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.