Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  df-dig Structured version   Visualization version   GIF version

Definition df-dig 49677
Description: Definition of an operation to obtain the 𝑘 th digit of a nonnegative real number 𝑟 in the positional system with base 𝑏. 𝑘 = − 1 corresponds to the first digit of the fractional part (for 𝑏 = 10 the first digit after the decimal point), 𝑘 = 0 corresponds to the last digit of the integer part (for 𝑏 = 10 the first digit before the decimal point). See also digit1 14374. Examples (not formal): ( 234.567 ( digit ` 10 ) 0 ) = 4; ( 2.567 ( digit ` 10 ) -2 ) = 6; ( 2345.67 ( digit ` 10 ) 2 ) = 3. (Contributed by AV, 16-May-2020.)
Assertion
Ref Expression
df-dig digit = (𝑏 ∈ ℕ ↦ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏)))
Distinct variable group:   𝑘,𝑏,𝑟

Detailed syntax breakdown of Definition df-dig
StepHypRef Expression
1 cdig 49676 . 2 class digit
2 vb . . 3 setvar 𝑏
3 cn 12328 . . 3 class ℕ
4 vk . . . 4 setvar 𝑘
5 vr . . . 4 setvar 𝑟
6 cz 12686 . . . 4 class ℤ
7 cc0 11193 . . . . 5 class 0
8 cpnf 11333 . . . . 5 class +∞
9 cico 13471 . . . . 5 class [,)
107, 8, 9co 7418 . . . 4 class (0[,)+∞)
112cv 1569 . . . . . . . 8 class 𝑏
124cv 1569 . . . . . . . . 9 class 𝑘
1312cneg 11535 . . . . . . . 8 class -𝑘
14 cexp 14197 . . . . . . . 8 class ↑
1511, 13, 14co 7418 . . . . . . 7 class (𝑏↑-𝑘)
165cv 1569 . . . . . . 7 class 𝑟
17 cmul 11198 . . . . . . 7 class ·
1815, 16, 17co 7418 . . . . . 6 class ((𝑏↑-𝑘) · 𝑟)
19 cfl 13923 . . . . . 6 class ⌊
2018, 19cfv 6537 . . . . 5 class (⌊‘((𝑏↑-𝑘) · 𝑟))
21 cmo 14002 . . . . 5 class mod
2220, 11, 21co 7418 . . . 4 class ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏)
234, 5, 6, 10, 22cmpo 7420 . . 3 class (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏))
242, 3, 23cmpt 5186 . 2 class (𝑏 ∈ ℕ ↦ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏)))
251, 24wceq 1570 1 wff digit = (𝑏 ∈ ℕ ↦ (𝑘 ∈ ℤ, 𝑟 ∈ (0[,)+∞) ↦ ((⌊‘((𝑏↑-𝑘) · 𝑟)) mod 𝑏)))
Colors of variables:    wff setvar class
This definition is used by:  digfval  49678
  Copyright terms: Public domain W3C validator