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 47330
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 14200. 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 47329 . 2 class digit
2 vb . . 3 setvar ๐‘
3 cn 12212 . . 3 class โ„•
4 vk . . . 4 setvar ๐‘˜
5 vr . . . 4 setvar ๐‘Ÿ
6 cz 12558 . . . 4 class โ„ค
7 cc0 11110 . . . . 5 class 0
8 cpnf 11245 . . . . 5 class +โˆž
9 cico 13326 . . . . 5 class [,)
107, 8, 9co 7409 . . . 4 class (0[,)+โˆž)
112cv 1541 . . . . . . . 8 class ๐‘
124cv 1541 . . . . . . . . 9 class ๐‘˜
1312cneg 11445 . . . . . . . 8 class -๐‘˜
14 cexp 14027 . . . . . . . 8 class โ†‘
1511, 13, 14co 7409 . . . . . . 7 class (๐‘โ†‘-๐‘˜)
165cv 1541 . . . . . . 7 class ๐‘Ÿ
17 cmul 11115 . . . . . . 7 class ยท
1815, 16, 17co 7409 . . . . . 6 class ((๐‘โ†‘-๐‘˜) ยท ๐‘Ÿ)
19 cfl 13755 . . . . . 6 class โŒŠ
2018, 19cfv 6544 . . . . 5 class (โŒŠโ€˜((๐‘โ†‘-๐‘˜) ยท ๐‘Ÿ))
21 cmo 13834 . . . . 5 class mod
2220, 11, 21co 7409 . . . 4 class ((โŒŠโ€˜((๐‘โ†‘-๐‘˜) ยท ๐‘Ÿ)) mod ๐‘)
234, 5, 6, 10, 22cmpo 7411 . . 3 class (๐‘˜ โˆˆ โ„ค, ๐‘Ÿ โˆˆ (0[,)+โˆž) โ†ฆ ((โŒŠโ€˜((๐‘โ†‘-๐‘˜) ยท ๐‘Ÿ)) mod ๐‘))
242, 3, 23cmpt 5232 . 2 class (๐‘ โˆˆ โ„• โ†ฆ (๐‘˜ โˆˆ โ„ค, ๐‘Ÿ โˆˆ (0[,)+โˆž) โ†ฆ ((โŒŠโ€˜((๐‘โ†‘-๐‘˜) ยท ๐‘Ÿ)) mod ๐‘)))
251, 24wceq 1542 1 wff digit = (๐‘ โˆˆ โ„• โ†ฆ (๐‘˜ โˆˆ โ„ค, ๐‘Ÿ โˆˆ (0[,)+โˆž) โ†ฆ ((โŒŠโ€˜((๐‘โ†‘-๐‘˜) ยท ๐‘Ÿ)) mod ๐‘)))
Colors of variables: wff setvar class
This definition is referenced by:  digfval  47331
  Copyright terms: Public domain W3C validator