what Programming Language has this ugly looking syntax

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

what Programming Language has this ugly looking syntax

Post 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 ???
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: what Programming Language has this ugly looking syntax

Post 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
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: what Programming Language has this ugly looking syntax

Post 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 ?
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: what Programming Language has this ugly looking syntax

Post by Lunasole »

Hah. At first look It reminded me something like Pearl, glad I never used it.
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
NicTheQuick
Addict
Addict
Posts: 1227
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: what Programming Language has this ugly looking syntax

Post 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.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: what Programming Language has this ugly looking syntax

Post 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/
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: what Programming Language has this ugly looking syntax

Post by Dude »

VB6_to_PBx wrote:Your example showed correctly in this PHPBB Forum
His example is an image. :)
User avatar
VB6_to_PBx
Enthusiast
Enthusiast
Posts: 625
Joined: Mon May 09, 2011 9:36 am

Re: what Programming Language has this ugly looking syntax

Post 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/
 
PureBasic .... making tiny electrons do what you want !

"With every mistake we must surely be learning" - George Harrison
Post Reply