Integration of Modular Arithmetic Functions

Click For Summary

Discussion Overview

The discussion revolves around the integration of modular arithmetic functions, specifically focusing on the integration of functions in the form of f(x) = mod(x, a) and exploring the reverse, mod(a, x). Participants are investigating the mathematical properties and definitions of modular arithmetic, particularly in relation to continuous functions and non-integer values.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant presents an equation for integrating mod(x, a) and seeks information on integrating mod(a, x).
  • Another participant questions how to define mod for non-integer values, noting that mod is typically defined for integers and is an equivalence relation rather than a binary operation.
  • It is mentioned that integrals operate on continuous functions, while mod typically operates on integers or natural numbers, which are not continuous functions.
  • A method to extend the modulo operation to real numbers using the floor function is proposed, though it is noted that the floor function resembles a staircase and may not be useful in this context.
  • One participant suggests that modular arithmetic can exhibit pseudo-continuity when the modulus is prime, as every unit has an inverse.

Areas of Agreement / Disagreement

Participants express differing views on the applicability of modular arithmetic to continuous functions and the definition of mod for non-integer values. There is no consensus on the integration of mod(a, x) or the utility of extending mod to real numbers.

Contextual Notes

The discussion highlights limitations in the definitions and applications of modular arithmetic, particularly regarding continuity and the treatment of non-integer inputs. The mathematical properties of mod as an equivalence relation and its implications for integration remain unresolved.

Igora
Messages
1
Reaction score
0
Hello, I have been searching and can't seem to find anything on the topic of integrating modular arithmetic functions. So far I have created an equation for a function in the form of f(x)=mod(x,a):
\int mod (x,a) dx=\frac{a(x-mod (x,a))+mod (x,a)^2}{2}+c
But, now I am investigating how to integrate a modular arithmetic function of the reverse: mod(a,x). Does anybody have any ideas or information on the topic?
 
Physics news on Phys.org
Igora said:
Hello, I have been searching and can't seem to find anything on the topic of integrating modular arithmetic functions. So far I have created an equation for a function in the form of f(x)=mod(x,a):
\int mod (x,a) dx=\frac{a(x-mod (x,a))+mod (x,a)^2}{2}+c
But, now I am investigating how to integrate a modular arithmetic function of the reverse: mod(a,x). Does anybody have any ideas or information on the topic?

How do you define mod for non-integer x?

One reason there's not much literature on this (besides mod only being defined for integers) is that mod is not a binary operation in math, it's an equivalence relation. It's only in programming languages that we see 5 mod 3 = 2.

In math we would say that 5 = 2 (mod 3), but we would also say that 5 = -4 (mod 3). So you can only make mod into a function if you say that n mod a is the least positive member of the set of integers congruent to n mod a. In math it's rare to use that formulation.
 
Also, integrals only operate on continuous functions.

mod usually operates on integers or natural numbers. f(n):natural numbers-> real numbers is by definition not a continuous function.

There are a few ways to extend the modulo operation to the real numbers. The greatest integer function or floor function is one natural way.

a newMod b =floor(a) ( mod floor(b) )
But as the floor function is very much like a staircase, it's not particularly useful in this context.
 
If you ignore negative a's and x's, then f(x) = \{^{a-x \; \mbox{if} \; x \le a}_{a \; \mbox{if} \; x > a}. The easy way to integrate that, is to just integrate each piece of the piecewise.
 
but modular arithmetic can be pseudo continuous if the mod is prime, because every unit has an inverse.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K