Questions tagged [exp]

The Exponential - aka exp(x) function

The vast majority of the 21 posts tagged [exp] relate to the Exponential function i.e. f(x) = e^x where e is the number which is approximately 2.71828. This function is very important in statistics and many other fields.

235 questions
-1
votes
1 answer

How to translate an equation with exponents and sin function to C?

How could I write it in C language? I tried many things, but it seems that I cannot understand the exp and sin functions.
Tolis P
  • 1
  • 1
-1
votes
1 answer

PHP : array_map with exponential function not working

I am trying to modify an entire associative array with a function. This is how the array looks like: Array ( [3] => 11 [1] => 12 [2] => 23 [0] => 34 [4] => 42 ) And this is the function: $bfactor = end($fballs) * log(100); function…
mirix
  • 511
  • 1
  • 5
  • 13
-1
votes
2 answers

How to find largest number from a set of exponential numbers in python

I have a list of lists with exponential numbers as follows: [[ 1.92043482e-04 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 0.00000000e+00 2.41005634e-03 0.00000000e+00 7.19330120e-04 0.00000000e+00 …
Arman
  • 827
  • 3
  • 14
  • 28
-1
votes
2 answers

lm() saving residuals with group_by with R- confused spss user

This is complete reEdit of my orignal question Let's assume I'm working on RT data gathered in a repeated measure experiment. As part of my usual routine I always transform RT to natural logarytms and then compute a Z score for each RT within each…
blazej
  • 1,678
  • 3
  • 19
  • 41
-2
votes
2 answers

derive exponential function using log() in C

I am trying to derive exponential function using logarithms. I know from below equation log(22026.4657948067), is 10 and exp(10) is 22026.4657948067 I would like to understand the basic math behind exp() and log(). At the moment, I have log() in C…
Coder
  • 27
  • 7
-2
votes
2 answers

Write function for exponential aggregation using R/Python

Input -->[10,20,30,40,50] Desired Output ---> [10,19.21,56.51,110.83,181.14] **Calculation** 10-->10 20-->20*exp(-0.04) 30-->30*exp(-0.04)+((30*exp(-0.04))*exp(-0.04)) …
Sona
  • 25
  • 4
-2
votes
2 answers

Implement x^(e) in Extended Pascal, without using exponentiation operators

Part of a Pascal ISO 10206 program I am building, requires me to implement a function to exponentiate a real number (x) to Eulers number (e), without using any exponentiation functions already included in Pascal(**,pow,exp...). I have been trying…
-2
votes
1 answer

overflow in exp, python

can't really figure out why this error RuntimeWarning: overflow encountered in exp is showing up. The function I'm trying to implement is: Id = lambda t_u, yp: Is * (np.exp((Vin(t_u) - L*yp)/(n_Ut*Ut)) - 1.0) with values: Vin = lambda t: Vo *…
Sito
  • 494
  • 10
  • 29
-4
votes
1 answer

Faster exponential calculation in Matlab

I have the following code which needs to calculate exponential of a 3D matrix. It works fine but I wonder if there is anyway to make it faster. (It currently needs more than 2 seconds. I am trying to make it run under half a second if…
Alithewise
  • 25
  • 1
  • 1
  • 7
1 2 3
15
16