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   Unicode version

Definition df-dig 42390
Description: Definition of an operation to obtain the  k th digit of a nonnegative real number  r in the positional system with base  b.  k  =  - 
1 corresponds to the first digit of the fractional part (for  b  =  10 the first digit after the decimal point),  k  =  0 corresponds to the last digit of the integer part (for  b  =  10 the first digit before the decimal point). See also digit1 12998. 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  =  ( b  e.  NN  |->  ( k  e.  ZZ , 
r  e.  ( 0 [,) +oo )  |->  ( ( |_ `  (
( b ^ -u k
)  x.  r ) )  mod  b ) ) )
Distinct variable group:    k, b, r

Detailed syntax breakdown of Definition df-dig
StepHypRef Expression
1 cdig 42389 . 2  class digit
2 vb . . 3  setvar  b
3 cn 11020 . . 3  class  NN
4 vk . . . 4  setvar  k
5 vr . . . 4  setvar  r
6 cz 11377 . . . 4  class  ZZ
7 cc0 9936 . . . . 5  class  0
8 cpnf 10071 . . . . 5  class +oo
9 cico 12177 . . . . 5  class  [,)
107, 8, 9co 6650 . . . 4  class  ( 0 [,) +oo )
112cv 1482 . . . . . . . 8  class  b
124cv 1482 . . . . . . . . 9  class  k
1312cneg 10267 . . . . . . . 8  class  -u k
14 cexp 12860 . . . . . . . 8  class  ^
1511, 13, 14co 6650 . . . . . . 7  class  ( b ^ -u k )
165cv 1482 . . . . . . 7  class  r
17 cmul 9941 . . . . . . 7  class  x.
1815, 16, 17co 6650 . . . . . 6  class  ( ( b ^ -u k
)  x.  r )
19 cfl 12591 . . . . . 6  class  |_
2018, 19cfv 5888 . . . . 5  class  ( |_
`  ( ( b ^ -u k )  x.  r ) )
21 cmo 12668 . . . . 5  class  mod
2220, 11, 21co 6650 . . . 4  class  ( ( |_ `  ( ( b ^ -u k
)  x.  r ) )  mod  b )
234, 5, 6, 10, 22cmpt2 6652 . . 3  class  ( k  e.  ZZ ,  r  e.  ( 0 [,) +oo )  |->  ( ( |_ `  ( ( b ^ -u k
)  x.  r ) )  mod  b ) )
242, 3, 23cmpt 4729 . 2  class  ( b  e.  NN  |->  ( k  e.  ZZ ,  r  e.  ( 0 [,) +oo )  |->  ( ( |_ `  ( ( b ^ -u k
)  x.  r ) )  mod  b ) ) )
251, 24wceq 1483 1  wff digit  =  ( b  e.  NN  |->  ( k  e.  ZZ , 
r  e.  ( 0 [,) +oo )  |->  ( ( |_ `  (
( b ^ -u k
)  x.  r ) )  mod  b ) ) )
Colors of variables: wff setvar class
This definition is referenced by:  digfval  42391
  Copyright terms: Public domain W3C validator