Comment on: Have you ever used imaginary numbers in code?
2 19 Feb 2017 17:59 u/Grospoliner in v/programmingComment on: Setting up an EmberJS project on Codeship using Github
Should use a repository not infested with SJWs.
Comment on: With just how much numerical detail MATLAB hides in things like its optimization functions, I'm amazed there's no simple way to numerically differentiate a function at a single point.
Built by matrices for matrices.
Comment on: Code Academy's bullshit!
Are you adding a 1 before your % increases?
Meal = 44.5
Tax = 6.75%
Tip = 15%
That would return a cost of:
44.50(1.0675) = 47.5
47.5(1.15) = 54.6 (for tipping on tax)
or
47.5 + 44.5(.15) = 54.175 (for tipping on meal)
If your language is built right, then you vectorize the value and can handle it. So sqrt(i) or whatever your vector field looks like. Should be info online somewhere that tells you how to do it.