Questions tagged [exponential]

Exponential can refer to a mathematics function, a curve / graph / dataset that follows the growth of that function, the exponential distribution in statistics, or a format to represent floats.

Exponential can refer to a mathematics function, a curve / graph / dataset that follows the growth of that function, the exponential distribution in statistics, or a format to represent floats.

Definitions from wikipedia:

888 questions
-1
votes
1 answer

Getting "cannot convert double to float" error when using Math.Pow

I have the following: int val1 = 2; float val2 = (float)val1; decimal val3 = 3.2m; float val4 = (float)val3; float Result2 = Math.Pow(val4, val2); It seems to me supposedly val4 and val2 are both in the…
ng80092a
  • 77
  • 1
  • 1
  • 9
-1
votes
1 answer

Rounding to an Exponential Scale

I need to round a floating-point number to an exponential scale, such as 0.1, 0.2, 0.4, 0.8, 1.6, 3.2, etc. however I am using an expression language that only has access to arithmetic and functions such as exp(x), log(x), log10(x), sqrt(x), sqr(x),…
Paul
  • 158
  • 11
-1
votes
1 answer

Exponential distribution parameters

I need to set parameters in an exponential distribution. I know that every 5 seconds I can produce 4 object in average. What is the lambda value of exponential distribution?
-1
votes
5 answers

How to determine 2^x = 64

I know the answer to this question is 6... but I am wondering what the formula is to figure this out. I will always need to solve for x in this scenario. TIA
Crobzilla
  • 4,891
  • 4
  • 17
  • 11
-1
votes
2 answers

array math exponential

Hi I need to make an dynamic array like this: I have a max number of 25000 and 62 as exponential(?) number. Array ( [0] => 0 [1] => 3844 // 62 * 62 [2] => 238328 // 62 * 62 * 62 <--- [3] => 14776336 // 62 * 62 * 62 *…
greenbandit
  • 2,267
  • 5
  • 30
  • 44
-2
votes
1 answer

I need help making an assembly mips code to calculate x^y

I need an assembly mips code that asks the user for 2 ints and calculate the exponential, for example: they put 2 and 8 and the result is 256, because 2^8 = 256. I know how to ask for the numbers: .data prompt1: .asciiz "X: " prompt2:…
Kiiush
  • 1
-2
votes
1 answer

Coding likelihood and log-likelihood function in r to perform optimization

I am working on a paper that requires me to find the MLE of Gumbel’s type I bivariate exponential distribution. I have proved the likelihood and log-likelihood functions likelihood and log-likelihood but I am struggling to implement it in r to…
-2
votes
1 answer

How to solve an R problem with both exponential and poisson distribution?

I have come across questions in R which deal with exponential and poisson distributions separately, but I am unsure about how to go about it when you need to use both in the same question The number of customers attending a shop in (0,t) has…
-2
votes
3 answers

Why doesn't round() work as expected on exponential numbers?

Formatting the number works and cut unwanted decimals. Is there a reason the round() function give the same value passed by parameter? number = 5.7821323121209e19 print(round(number,2)) # 5.7821323121209e19. # Works. print('%.3g' % number) #…
-2
votes
1 answer

How to write exponential function in verilog?

I am beginner,I have to complete a project which uses exponential to calc with piecewise interpolation.
-2
votes
2 answers

calculating exp(3.8) without import

is there a way to make a code to calculate the exp(3.8) without using any import whether it's math or any other imports. I wanna try making a program that calculates the exp of any number without using imports but I can't figure it out so does…
kkhater
  • 82
  • 8
-2
votes
1 answer

Apache Camel framework is converting the value 99999999999.99 into 9.999999999999E10

I have a json payload where one value for a key is 99999999999.99. When I pass this value, the camel is converting this into 9.999999999999E10. The camel version I'm using is 2.22.1. I've upgraded the camel version to 2.23.2 but didn't work. I can…
-2
votes
2 answers

Continued fraction of the constant e

I am very new to python. I have just recently started doing computer science. I am however stuck on this topic as to how do I get the value of the continued fraction of e constant after I've input a number. Please do not solve it for me but teach me…
user8622288
-2
votes
1 answer

String to exponential notation

I use Ruby. I have str="0.2592585e7" I need to convert this to exp notation and get the same result like x=0.2592585e7 When I do this via format I get: irb(main):064:0> format("%0.6e", str.to_f) => "2.592585e+06" Any idea how to not get decimal…
Oleh
  • 1
-2
votes
2 answers

java negative double to the power of a pos/neg double

i am trying to use an exponential to work out the distance the z coordinate would be on screen from the basic z coordinate the object is, as the further away the object is the slower the object moves away and vice versa when the object is coming…
Green.jab
  • 7
  • 3