1
$\begingroup$

Why does the following code give me two different curves?

a = 100;
b = -0.1;
s = a n^b;
LogLogPlot[{s, a n^b}, {n, 1000, 1000000}]

plot

$\endgroup$
  • $\begingroup$ which version of M are you using? I get same plot !Mathematica graphics $\endgroup$ – Nasser Dec 7 '17 at 16:09
  • $\begingroup$ I get the same curves: link (Mathematica 10.2) $\endgroup$ – K.J. Dec 7 '17 at 16:10
  • 1
    $\begingroup$ Add Remove[a, b, s, n] at the top $\endgroup$ – Coolwater Dec 7 '17 at 16:13
  • $\begingroup$ I added Remove with no change. I'm using Mathematica 11.0.0.0. $\endgroup$ – rhomboidRhipper Dec 7 '17 at 16:46
  • $\begingroup$ I get the same curves (v. 10.4). $\endgroup$ – David G. Stork Dec 7 '17 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.