-2

I am trying to compute this in R

enter image description here

When I tried

exp(1)^ln(1.89)/10

I get the error: Error in ln(1.89) : could not find function "ln"

I was wondering if ln is ^

I tried exp(1)^(1.89/10) but I get a value of 1.208041 and the answer should be 1.066.

Am I translating the equation into R correctly?

Ravi Saroch
  • 934
  • 2
  • 13
  • 28
L55
  • 117
  • 8

2 Answers2

1

log() is the function you are looking for

1
T_val <- 2 # some value
exp(log(1.89) / 10 * T_val)

You should log and not ln. Moreover, parenthesis are important due to operator precedence (^ versus / and *).