Page 1 of 1

what Programming Language has this ugly looking syntax

Posted: Sun Mar 17, 2019 11:24 pm
by VB6_to_PBx
what Programming Language has this ugly looking syntax ?

in Google searches, sometimes i come across this ugly syntax :

example :

Code: Select all

<math>R_{dry air} = 287.05 \frac{\mbox{J}}{\mbox{kg} \cdot \mbox{K}}<math> 

The pressure at altitude h is given by:

    <math>p = p_0 \cdot (1 + \frac{L \cdot h}{T_0})^\frac{g \cdot M}{R \cdot -L}<math> 

Density can then be calculated according to a molar form of the original formula:

    <math>\rho = \frac{p \cdot M}{R \cdot T}<math> 


    $ \rho_{\,\mathrm{humid~air}} = \frac{p_{d}}{R_{d} \cdot T} + \frac{p_{v}}{R_{v} \cdot T} \, $[1] 

where:

    $ \rho_{\,\mathrm{humid~air}} = $ Density of the humid air (kg/m³) 
    $ p_{d} = $ Partial pressure of dry air (Pa) 
    $ s_{d} = $ Partial sound of dry air (Pa) 
    $ R_{d} = $ Specific gas constant for dry air, 287.05 J/(kg·K) 
    $ T = $ Temperature (K) 
    $ p_{v} = $ Pressure of water vapor (Pa) 
    $ s_{v} = $ Sound of water vapor (dB) 
    $ R_{v} = $ Specific gas constant for water vapor, 461.495 J/(kg·K) 

the webpages never mention or show what Programming Language is used ???

Re: what Programming Language has this ugly looking syntax

Posted: Sun Mar 17, 2019 11:37 pm
by luis
It's not a programming language, it's LaTex.

Code: Select all

R_{dry air} = 287.05 \frac{\mbox{J}}{\mbox{kg} \cdot \mbox{K}}
is converted to

Image

https://www.codecogs.com/latex/eqneditor.php

Re: what Programming Language has this ugly looking syntax

Posted: Mon Mar 18, 2019 4:48 am
by VB6_to_PBx
luis wrote:It's not a programming language, it's LaTex.

Code: Select all

R_{dry air} = 287.05 \frac{\mbox{J}}{\mbox{kg} \cdot \mbox{K}}
is converted to

Image

https://www.codecogs.com/latex/eqneditor.php

thank luis , for link to codecogs.com/latex

i learned something new :)

So , some of those Webpages are not properly pasting/formatting the latex code ??
as its just showing latex code raw form .

Your example showed correctly in this PHPBB Forum

my FireFox Browser might not properly showing some Webpages with latex ?

Re: what Programming Language has this ugly looking syntax

Posted: Mon Mar 18, 2019 4:51 am
by Lunasole
Hah. At first look It reminded me something like Pearl, glad I never used it.

Re: what Programming Language has this ugly looking syntax

Posted: Mon Mar 18, 2019 9:46 am
by NicTheQuick
VB6_to_PBx wrote:So , some of those Webpages are not properly pasting/formatting the latex code ??
as its just showing latex code raw form .
This usually happens if you disabled the Javascript which is responsible to render the LaTeX code.

Re: what Programming Language has this ugly looking syntax

Posted: Mon Mar 18, 2019 11:18 am
by VB6_to_PBx
NicTheQuick wrote:
VB6_to_PBx wrote:So , some of those Webpages are not properly pasting/formatting the latex code ??
as its just showing latex code raw form .
This usually happens if you disabled the Javascript which is responsible to render the LaTeX code.
i'm using NoScript with FireFox + Microsoft Securities Essentials AV on this particular Win 8.0 Computer
so its likely its NoScript causing it ... i'll test it without NoScript today

https://noscript.net/

Re: what Programming Language has this ugly looking syntax

Posted: Mon Mar 18, 2019 12:53 pm
by Dude
VB6_to_PBx wrote:Your example showed correctly in this PHPBB Forum
His example is an image. :)

Re: what Programming Language has this ugly looking syntax

Posted: Mon Mar 18, 2019 10:36 pm
by VB6_to_PBx
disabled NoScript ( which enables JavaScript )
now see LaTeX correctly on some Webpages
but found out other Webpages use this too :

somewhat similar to LaTeX
https://www.mathjax.org/