What does that mean?

Solved

Posted on 2011-05-04

Hi all

I am looking for an exponential decay function in Java

That will take the follwing values

Intital Radius = double

Radius decay = double

t = time

I have tried something this.. = Intita_ Radius * Math.exp(- radius_Decay/t):

but it is not working quite well

Thanks for input

I am looking for an exponential decay function in Java

That will take the follwing values

Intital Radius = double

Radius decay = double

t = time

I have tried something this.. = Intita_ Radius * Math.exp(- radius_Decay/t):

but it is not working quite well

Thanks for input

11 Comments

I am getting the follwing result

int_radius = 5.000,

radius_deca = 0.995

at t=0: Result = 5.00

at t=1: Result = 1.83

```
public static double cal_radius(int t, double ini_Rad, double rad_decay){
double cal_Rad;
cal_Rad = ini_Rad * Math.exp(- rad_decay/t);
return cal_Rad;
}
```

it is 5.0 multiplied by e in power almost -1.0

so it will be 5 divided by 2.71...

Looks like reasonable number

By clicking you are agreeing to Experts Exchange's Terms of Use.

Title | # Comments | Views | Activity |
---|---|---|---|

Using object mapper in spring web application | 8 | 39 | |

Convert ArrayList of custom objects to JSON | 4 | 44 | |

scores100 challenge | 3 | 67 | |

Best, Average or Worst ? | 12 | 55 |

Join the community of 500,000 technology professionals and ask your questions.

Connect with top rated Experts

**8** Experts available now in Live!