I am trying to compare the value between pi^e and e^pi using rstudio. I get the error "e" not found. I thought e and pi were universal values and could be called at will to be compared. I am fairly new to studio so any info is appreciated thank you
Asked
Active
Viewed 268 times
0
-
2Just do `e = exp(1)` – Jonas Feb 08 '21 at 16:47
-
https://stackoverflow.com/questions/9458536/r-programming-how-do-i-get-eulers-number – Gallarus Feb 08 '21 at 16:47
-
1Why use RStudio at all? It is much more interesting to determine `max(pi^e,e^pi)` without a computer or other computational aid. – John Coleman Feb 08 '21 at 16:54
-
Actually, R does not have many built-in constants and pi is the only mathematical one (https://stat.ethz.ch/R-manual/R-devel/library/base/html/Constants.html). So you need to create them yourself, as @Jonas suggested. – Alex Knorre Feb 08 '21 at 18:00