Questions tagged [infinity]

Infinity is a specific floating point value that is always larger than any other floating point value. It may arise as a result of division by zero, arithmetic overflow and other exceptional operations. Infinity is different from the maximal still valid floating point value that the certain data type can hold. IEEE 754 floating point standard allows both positive and negative infinity values.

Infinity is a specific floating point value that is always larger than any other floating point value. It may arise as a result of division by zero, arithmetic overflow and other exceptional operations. IEEE 754 floating point standard allows both positive and negative infinity values.

Infinity is different from the maximal still valid floating point value that the certain data type can hold. This value is still smaller than the infinity.

Some programming languages allow to specify the infinity in the code explicitly. For instance, the Java code

    double [] values = ...
    double min = Double.POSITIVE_INFINITY;

    for (double x: values) 
      if (x < min) min = x;

can be used to obtain the minimal value in the array that only contains usual, valid floating point values.

475 questions
0
votes
0 answers

What is causing requests to this url/path?

My company is hosting an ecom shop based on Infinity Shop System. Our logs say that there are HTTP calls to this path which lead to 404 errors since the file does not…
Timo Ernst
  • 15,243
  • 23
  • 104
  • 165
0
votes
1 answer

is this a infinite dimensional list

Does this code create an infinitely deep list? foo = ['Hello'] bar = [foo]*100 foo[0] = bar print foo print foo[0] == foo print foo == bar Because that is what it seems like, but how is it not taking up infinite amounts of memory then, everything…
tox123
  • 318
  • 9
  • 21
0
votes
2 answers

Java Exception Handling for Infinity

I am trying to write a program to equate the value of any number to any power, and I'm suppose to implement exception handling for exponents less than zero which i successfully did and also exception handle for when the value is too large to output…
davedno
  • 349
  • 1
  • 5
  • 15
0
votes
1 answer

Receive "infinity" as result in mortgage payment calculation in Visual Basic

I'm a first year programming student and am trying to make a mortgage payment calculator. Users enter their loan amount and interest rate, select 15 or 30 years for the term length, and their monthly payment should be calculated. I think the math is…
SJW
  • 1
0
votes
1 answer

Getting "infinity" value from textfield on android

im making a simple bodyfat calculator inside a fragment, im getting infinity value when running the app, then i tried to see if it was getting a 0 vale from the variable bodyweight and indeed, is getting a 0 value, im new on fragments, maybe…
0
votes
1 answer

Infinite scrolling with div own

First thanks for the help , I 'm with a problem I can not solve. I have this script which is infinite , however I want it to be infinite using typical of the #main divs , example : I have divs
1
0
votes
2 answers

RoR: Is there a value for infinite?

I am trying to set up a max_users method. I have two different software types, hardware and software, and I am trying to set hardware to 1, and software to unlimited (eventually the user will choose in a form field how many max users they want, but…
Briknthewall
  • 149
  • 1
  • 16
0
votes
2 answers

redirect looping on codeigniter

After i had changed my codeigniter files and the screen has diplay error like this http://webdomain.com/index.php/login/login has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the…
cleptoon
  • 1
  • 2
0
votes
1 answer

limit to infinity of Left Riemann Sum MATLAB

Lets say I have created a function Sn=LeftRiemannSum(f,left,right,N) ,that computes the left riemann sum over the interval left to right with N subdomains.i.e.: Sn=sum(f(xi)h) for all subdomains i=0 to N-1. f is my function and xi=left+ih , so the…
0
votes
0 answers

Q. Infinity Java math equation and double length count

This is for infinite geometric progression. How would I go about having the following in infinity value? To have m start from 1 and go up by 1 each time in infinity and have valueTwo be the sum of all. This is in a while loop. double…
James
  • 47
  • 3
  • 8
0
votes
2 answers

How to know if a number is irrational (infinite)

I've created a function who check if a number is irrational or not: function Verifie_infini($value) { if(strlen(substr(strrchr($value, "."), 1))>= 10) { return 1; } else { return 0; } } But it doesn't work when there are…
Louis D.
  • 454
  • 6
  • 19
0
votes
1 answer

Object flies off to infinity after rotation

I am trying to make a 2D "Ghost Object" in Unity that moves to where the player's mouse position is (while snapping to a grid) and rotates when the mouse wheel is rotated. When the player clicks, it would then create the "Real Object" in its…
0
votes
1 answer

Yacas apparently computes one-sided limit wrong

I want to find lim(x->4-) ((x-4)/(x^2-8*x+16)) so I typed this into the Yacas interface: Limit(x,4,Right) (1/(x-4)) Yacas answered: Infinity But that is wrong; the answer is -Infinity. Am I just misunderstanding the dir argument of the Limit()…
0
votes
1 answer

Discern infinite value from array of floats

I'm using the function scipy.optimize.curve_fit to fit some data. If the fit converges normally, curve_fit will return two arrays popt and pcov that will look something like this for a function of two parameters: print popt [ 2.97591488e-03 …
Gabriel
  • 40,504
  • 73
  • 230
  • 404
0
votes
1 answer

Avoiding infinities in this numpy logsumexp calculation

Following up from Value error: truth value ambiguous, I'm editing the logsumexp function from here: https://github.com/scipy/scipy/blob/v0.14.0/scipy/misc/common.py#L18 The reason is because: 1. I want to select the maximum value myself, it's not…
user961627
  • 12,379
  • 42
  • 136
  • 210