Talk:Roots of a quadratic function: Difference between revisions

→‎obscure algorithm ?: added a reference to show how different computer programming languages deal with infix operators with exponentiation.
m (→‎obscure algorithm ?: corrected a spelling (along with a strike-out).)
(→‎obscure algorithm ?: added a reference to show how different computer programming languages deal with infix operators with exponentiation.)
 
(One intermediate revision by one other user not shown)
Line 20:
: In the example above (2nd line) (-10<sup>6</sup>) isn't the same as -1e6. The former is -1,000,000 and the latter is +1,000,000. --[[User:Gerard Schildberger|Gerard Schildberger]] 18:11, 25 June 2011 (UTC)
 
::: Other way round surely: <math>-10^n</math> will always be positive when n is even. --Laurie Alvey 10:45, 19 May 2015 (UTC)
::: Nope. -1e6 = -1000000. And -10^6=-1000000 as well, except in some insane languages. [[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 17:35, 13 August 2020 (UTC)
 
:::: It all depends if the infix (negative) operator has more or less priority then the exponent operator. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 09:14, 13 November 2020 (UTC)
::: Other way round surely: <math>-10^n</math> will always be positive when n is even. --Laurie Alvey 10:45, 19 May 2015 (UTC)
 
:::: See: &nbsp; [[Exponentiation with infix operators in (or operating on) the base]].
 
== J example ==