# Revision history [back]

### Simplifaction of boolean values

def F(n) : return exp(log(n))

def test1(n) : return n == F(n)

[test1(i) for i in (4..8)]

gives [4 == 4, 5 == 5, 6 == 6, 7 == 7, 8 == 8]

def G(n) : return n

def test2(n) : return n == G(n)

[test2(i) for i in (4..8)]

gives [True, True, True, True, True]

What do I have to do so that test1 gives the same result as test2?

 2 No.2 Revision DSM 5242 ●21 ●68 ●112

### Simplifaction Simplification of boolean values

def F(n) : return exp(log(n))

def test1(n) : return n == F(n)

[test1(i) for i in (4..8)]

gives [4 == 4, 5 == 5, 6 == 6, 7 == 7, 8 == 8]

def G(n) : return n

def test2(n) : return n == G(n)

[test2(i) for i in (4..8)]

gives [True, True, True, True, True]

What do I have to do so that test1 gives the same result as test2?

 3 No.3 Revision DSM 5242 ●21 ●68 ●112

### Simplification of boolean values

def F(n) :
return exp(log(n))exp(log(n))
def test1(n) :
return n == F(n)F(n)
[test1(i) for i in (4..8)](4..8)]


gives [4 == 4, 5 == 5, 6 == 6, 7 == 7, 8 == 8]

def G(n) :
return nn
def test2(n) :
return n == G(n)G(n)
[test2(i) for i in (4..8)](4..8)]


gives [True, True, True, True, True]

What do I have to do so that test1 gives the same result as test2?