Questions tagged [uniroot]

33 questions
0
votes
2 answers

R: Solving for a variable (using the uniroot function)

I am rather new to R and really could need the help of the community with the following problem. I am trying to solve for the variable r in the following equation: (EPS2 + r*DPS1-EPS1)/r^2)-PRC. Here is my (unsuccessful) attempt on solving the…
0
votes
1 answer

Uniroot in simulations

I'm trying to find the value that generates the cumulative sum of a function to be 0 (or the closest value to 0). I have a simple ecuation: x - y(1-z) where z is the key variable. The problem is that x and y are simulated, so they don't remain…
Andres Gonzalez
  • 219
  • 1
  • 8
0
votes
1 answer

How can I solve non linear equation in R and uniroot function

How can i find the value of x using R for the equation a(x^b)+k*log(1+(x^c))+log(1-(u^(1/d)))=0 for the values u=0.1,c=0.8,k=1.2,d=1.5,a=0.9,b=1 They got the ans as 0.0539. But i didn't get this ans.
Akhilraj N S
  • 9,049
  • 5
  • 36
  • 42
1 2
3