2
$\begingroup$

I want to draw a vertical line like this:

a = 10^(1/0.0015);
Line[{{a, -5}, {a, -3}}]

But there is an error:

enter image description here

$\endgroup$

closed as off-topic by ciao, dr.blochwave, ilian, march, Yves Klett Oct 1 '15 at 19:27

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – ciao, dr.blochwave, ilian, march, Yves Klett
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 6
    $\begingroup$ Do you really want the $x$ value to be $\approx 10^{666}$? $\endgroup$ – David G. Stork Oct 1 '15 at 17:01
  • $\begingroup$ @DavidG.Stork I put my real problem down in the comment. $\endgroup$ – yangyang Oct 1 '15 at 19:44
7
$\begingroup$

The error message is obscure and not as helpful as it might be, but basically your problem is that you are asking Mathematica to draw a line that is so far away form the origin that its position can not be represented with machine floating-point numbers. Unfortunately Mathematica draws all graphics with machine floats -- probably for speed, so your line segment can't be drawn.

MachineNumberQ[10^(1/0.0015)]
False
$\endgroup$
  • $\begingroup$ OK. I got it. But my problem is I need to BodePlot this function: Bo = TransferFunctionModel[1/(1 + [Omega]*0.0015), [Omega]]; And I also want to show one horizontal and one vertical line which indicate the -3db cutoff frequency. I tried several times and it seems that the line should also be in logarithm range. The cut off frequency is 1/0.0015 but I need to plot a vertical line in x=10^(1/0.0015). Any suggestions? $\endgroup$ – yangyang Oct 1 '15 at 19:39
  • $\begingroup$ @yangyang. You should submit your revised problem as new question. $\endgroup$ – m_goldberg Oct 1 '15 at 19:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.