GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Actually 0/0 is whats known as an indeterminate form, which means that whatever original equation you were working with can either be: factored to a more simple form before taking it's limit, or can be taken it's limit as is by using L'Hôpital's rule. Don't feel bad though, I am sure it has been ages since you have had Calculus.
Actually 0/0 is whats known as an indeterminate form, which means that whatever original equation you were working with can either be: factored to a more simple form before taking it's limit, or can be taken it's limit as is by using L'Hôpital's rule. Don't feel bad though, I am sure it has been ages since you have had Calculus.
I don't think we actually did any calculus in what were then called "Secondary Modern" schools in the UK (way, way, back).
Now just try doing this with 0 / 0. You'll find that any answer works.
Perhaps you have had classes beyond Calculus (I have yet to take Discrete Maths, Linear Algebra), so maybe in courses beyond Calculus I you can actually use the indeterminate form, if so please explain.
Perhaps you have had classes beyond Calculus (I have yet to take Discrete Maths, Linear Algebra), so maybe in courses beyond Calculus I you can actually use the indeterminate form, if so please explain.
I actually don't know Calculus yet, that's just how I logically thought of it.
I just get "Math operation error" in the bottom status bar with gcalctool.
xcalc just gives "nan".
Are you using the Windows Calculator (I ask because I notice you're posting from Vista)? I could swear that even that one has a divide-by-zero error message...
IMO all calc progs should return "nan" or "divide by zero error" or some variation if the user attempts to divide by zero, regardless of what the dividend (divisor?) is.
Last edited by MrCode; 01-17-2010 at 02:45 PM.
Reason: IMO...
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
Quote:
Originally Posted by MrCode
I just get "Math operation error" in the bottom status bar with gcalctool.
xcalc just gives "nan".
Are you using the Windows Calculator (I ask because I notice you're posting from Vista)? I could swear that even that one has a divide-by-zero error message...
IMO all calc progs should return "nan" or "divide by zero error" or some variation if the user attempts to divide by zero, regardless of what the dividend (divisor?) is.
bash-4.0$ cat test.c
#include <stdio.h>
int main() {
printf("%d\n", 0/0);
}
bash-4.0$ gcc test.c -o 0d0
test.c: In function ‘main’:
test.c:4: warning: division by zero
I think most programs just look for division by zero and call it invalid no matter what.
Since the answer is undefined I doubt it would be useful in a program, anyway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.