Mathematics Notation Question

  • #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)
 

Answers and Replies

  • #2
14,123
11,377
just move the number in an array and you can address the single digits; the comfort depends on the programming language you use
 
  • #3
12,366
6,114
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.
 

Related Threads on Mathematics Notation Question

  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
4
Views
3K
Replies
3
Views
5K
Replies
76
Views
9K
Replies
1
Views
5K
Replies
5
Views
2K
Replies
3
Views
2K
  • Last Post
Replies
5
Views
1K
  • Last Post
Replies
4
Views
2K
Top