11h
comment What is the meaning of $\exp(\,\cdot\,)$?
@kahen: One might go even further and read $e^z$ as multi-valued, being defined as $\exp(z \ln e)$.
11h
comment C++ manually Convert string to int?
It's a bad idea to use floating point arithmetic when trying to do exact integer calculation.
21h
answered Multiply two overflowing integers modulo a third
21h
comment (a*b)%m splitting the operands
If you're going to do it that way, you're probably better off with z = (z >= mod) ? (z - mod) : z than z = z % mod
1d
awarded Necromancer
1d
comment What is the point of using references and pointers in C++?
I think the votes to close are from people reading the question they expect to see, not the question that was asked.
1d
answered What is the point of using references and pointers in C++?
1d
comment Why does the criteria for a good question change with reputation?
If nothing else, there is enough content in all three of the sample questions so that they do not trigger my "immediately downvote" reflex.
1d
comment About the Remainder operator in ansi C
(@melpomene's comment assumes 0 <= a as well)
1d
comment About the Remainder operator in ansi C
What particularly do you and do you not understand from the example? My bet is that your actual problem has nothing to do with % at all.
2d
comment Why do we have "another" definition for the kernel?
The isomorphism theorems for congruences.
2d
answered Signed and unsigned characters behavior while printing in C
2d
answered reducing code using templated functions
2d
answered How can I intuitively interpret this vector operation?
2d
comment How can I obtain this division's limit without using derivatives?
@fibonatic: The question was how to solve the problem with the basic limits, not how to prove the basic limits. (and, IIRC, the usual pedagogy in introductory courses is that the derivatives of the trig functions are proven using the basic limits anyways, rather than the other way around)
2d
comment Checking for a draw in Tic Tac Toe [Python]
Aside: all is a bad choice for a function name, because it is also the name of a builtin.
2d
comment How can I obtain this division's limit without using derivatives?
@Lemony: We aren't: we're using one of the "basic known limits" involving $\sin$.
2d
comment C++ Struct to string
I'm not sure why this was closed as unclear; the problem seems pretty obvious to me, and could easily be answered by an explanation of how arrays of characters are conventionally interpreted as strings. (and the ramifications of the null character therein)
2d
comment Moral Justification of Violence
I suspect the underlying problem here is that you haven't really considered how to fairly evaluate violence as an option. If you try to hold the position that violence is not an option, then you'll lose; you have to accept violence is an option that really does solve problems before you can really begin to argue both that it's not a good solution and that there are better available solutions. (both points are important to your position, I think, although I disbelieve they always hold) (note that "look for a better option" is an option itself, and it often solves problems badly or not at all)
2d
comment Recursion with matrices - Rotten Oranges
Since t and count don't affect the flow of control, you might as well remove those too as you simplify the function to track down the error.
1 2 3 4 5