# Plot gives no output?

**URL:** <https://community.wolfram.com/t/plot-gives-no-output/18606>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [July 28, 2021, 12:46pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606 "2021-07-28T12:46:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [July 28, 2021, 12:46pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/1 "2021-07-28T12:46:09Z")

</div>

I have the below mentioned plot issue in mathematics. Every thing is written perfectly but cant plot it.

 ![1948Capture.PNG](https://global.discourse-cdn.com/wolfram/original/2X/f/f4f435811368e98e5fc46e6c2985573e5c98dc05.png)

```
enter coderm = (( 1 + 2 \[Nu] ) Rg)/2;
bc = Sqrt[rm^2 (1 - Rg/rm)^(1 - 2 \[Nu])];

\!\(\*OverscriptBox[
StyleBox["a",
FontSize->12], \(_\)]\) = Sqrt[(2 rm)/((5 - 2 \[Nu]) Rg)];

\!\(\*OverscriptBox[\(b\), \(_\)]\) = 
  Sqrt[(2 rm )/(
    Subscript[R, g] (5 - 2 \[Nu]) )] ( 
     Log[(16 rm (5 - 2 \[Nu])^2)/((-1 + 2 \[Nu]) Rg) ((4 - 2 \[Nu]) - 
         Sqrt[(3 - 2 \[Nu]) (5 - 2 \[Nu])])^2]) - \[Pi];
Rg = 2 M;
\[Theta] = bc/\[ScriptCapitalD]LS (1 + E^((
\!\(\*OverscriptBox[\(b\), \(_\)]\) - \[Pi] + \[Beta])/
\!\(\*OverscriptBox[
StyleBox["a",
FontSize->12], \(_\)]\))) (180*3600)/\[Pi]*10^6;
\[Beta]s = Rs/\[ScriptCapitalD]LS;

 Rs = 6.96*10^8; \[Beta]0 = 1 \[Beta]s; M = 
 10 (1476); \[ScriptCapitalD]OS = 1.496*10^11; \[ScriptCapitalD]LS = 
 3.08567758*10^14 + 1.496*10^11;
\[ScriptCapitalD]OL = 3.08567758*10^14; \[Nu] = 1;
k = Plot[Log10[\[Theta]], {\[Beta], -10, 10}, PlotRange -> All, 
  Frame -> True, Axes -> False, PlotStyle -> {Red}] here

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [July 28, 2021, 1:46pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/2 "2021-07-28T13:46:54Z")

</div>

You must give a value to `rm`, `Rg` and decide if `Rg` is the same as the subscripted version. It is not `Log10[\[Theta]` but `Log[10,\[Theta]]`.

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [July 28, 2021, 2:07pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/3 "2021-07-28T14:07:51Z")

</div>

Thank you Sir for your response, but it’s still not working. The graph I am getting is attached:

 ![Homework.png](https://global.discourse-cdn.com/wolfram/original/3X/f/4/f4a553e3f57709bd1410ea11913398ae30d701fa.png)

```
rm = (( 1 + 2 \[Nu] ) Rg)/2;
bc = Sqrt[rm^2 (1 - Rg/rm)^(1 - 2 \[Nu])];

\!\(\*OverscriptBox[
StyleBox["a",
FontSize->12], \(_\)]\) = Sqrt[(2 rm)/((5 - 2 \[Nu]) Rg)];

\!\(\*OverscriptBox[\(b\), \(_\)]\) = 
  Sqrt[(2 rm )/(
    Rg (5 - 2 \[Nu]) )] ( 
     Log[(16 rm (5 - 2 \[Nu])^2)/((-1 + 2 \[Nu]) Rg) ((4 - 2 \[Nu]) - 
         Sqrt[(3 - 2 \[Nu]) (5 - 2 \[Nu])])^2]) - \[Pi];
Rg = 2 M;
\[Theta] = bc/\[ScriptCapitalD]LS (1 + E^((
\!\(\*OverscriptBox[\(b\), \(_\)]\) - \[Pi] + \[Beta])/
\!\(\*OverscriptBox[
StyleBox["a",
FontSize->12], \(_\)]\))) (180*3600)/\[Pi]*10^6;
\[Beta]s = Rs/\[ScriptCapitalD]LS;

 Rs = 6.96*10^8; \[Beta]0 = 0 \[Beta]s; M = 
 10 (1476); \[ScriptCapitalD]OS = 1.496*10^11; \[ScriptCapitalD]LS = 
 3.08567758*10^14 + 1.496*10^11;
\[ScriptCapitalD]OL = 3.08567758*10^14; \[Nu] = 1;
k = Plot[Log[10, \[Theta]], {\[Beta], -10, 10}, PlotRange -> All, 
  Frame -> True, Axes -> False, PlotStyle -> {Red}]

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [July 28, 2021, 2:17pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/4 "2021-07-28T14:17:29Z")

</div>

Check your formulas for mistakes.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [July 28, 2021, 2:25pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/5 "2021-07-28T14:25:30Z")

</div>

There are several issues with the code.

This is not valid syntax

```
enter coderm = (( 1 + 2 \[Nu] ) Rg)/2

```

`Rg` is not the same as `Subscript[R, g]`.

`rm` is not defined.

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [July 28, 2021, 2:41pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/6 "2021-07-28T14:41:11Z")

</div>

Thank you Sir for your reponse. I have now tried to change the syntax. May be they will no be error free. Also, I have attaced a .png to have a better look of my codes. Kindly check them. Regards

```
rm = (( 1 + 2 n ) Rg)/2;
bc = Sqrt[rm^2 (1 - Rg/rm)^(1 - 2 n)];
A = Sqrt[(2 rm)/((5 - 2 n) Rg)];
B = Sqrt[(2 rm )/(
    Rg (5 - 2 n) )] ( 
     Log[(16 rm (5 - 2 n)^2)/((-1 + 2 n) Rg) ((4 - 2 n) - 
         Sqrt[(3 - 2 n) (5 - 2 n)])^2]) - \[Pi];
Rg = 2 M;
\[Theta] = 
  bc/DLS (1 + E^((B - \[Pi] + \[Beta])/A)) (180*3600)/\[Pi]*10^6;
\[Beta]s = Rs/DLS;

 Rs = 6.96*10^8; \[Beta]0 = 1 \[Beta]s; M = 10 (1476); DOS = 
 1.496*10^11; DLS = 3.08567758*10^14 + 1.496*10^11;
DOL = 3.08567758*10^14; n = 1;
k = Plot[Log[10, \[Theta]], {\[Beta], -10, 10}, PlotRange -> All, 
  Frame -> True, Axes -> False, PlotStyle -> {Red}]

```

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [July 28, 2021, 2:42pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/7 "2021-07-28T14:42:00Z")

</div>

![6576Homework.png](https://global.discourse-cdn.com/wolfram/original/3X/4/8/4829db43e81be7269bb22bc8882576c2f5c95d24.png)

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [July 28, 2021, 2:43pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/8 "2021-07-28T14:43:00Z")

</div>

Thank you Sir for your reply and comments. Regards.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [July 28, 2021, 2:52pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/9 "2021-07-28T14:52:31Z")

</div>

Your latest code has no syntax error, but it may not correspond to the formulas in your book.

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [July 28, 2021, 3:45pm UTC](https://community.wolfram.com/t/plot-gives-no-output/18606/10 "2021-07-28T15:45:14Z")

</div>

Thank you for reconsidering my request and helping me out.
