Skip to content

Decimal logs in Sympy

I want to solve an expression in SymPy But then I try to code it like this The result isn’t correct. Answer You’ve got the result with ten digits, and not the decimal logarithm. Documentation says, In SymPy, as in Python and most programming languages, log is the natural logarithm, also known as l…

Finding immediate smaller than X

So, we have been provided with a list and a value X. In the given list we have to find the immediate smaller value than X. Here is my code. Where am I doing it wrong? I am also attaching the provided test cases and the test case which I am not able to pass. I was able to pass