Skip to content

Instantly share code, notes, and snippets.

@mikedamage
Created January 21, 2012 21:23
Show Gist options
  • Save mikedamage/1654065 to your computer and use it in GitHub Desktop.
Save mikedamage/1654065 to your computer and use it in GitHub Desktop.
1 Lightyear in Inches - Wolfram Alpha API
<?xml version='1.0' encoding='UTF-8'?>
<queryresult success='true'
error='false'
numpods='6'
datatypes=''
timedout=''
timing='0.78'
parsetiming='0.259'
parsetimedout='false'
recalculate=''
id='MSP15191a0195597422aia00000464dig4a46ee6349&amp;s=15'
related='http://www4a.wolframalpha.com/api/v2/relatedQueries.jsp?id=MSP15201a0195597422aia0000020ghg14f76689c60&amp;s=15'
version='2.1'>
<pod title='Input interpretation'
scanner='Identity'
id='Input'
position='100'
error='false'
numsubpods='1'>
<subpod title=''>
<plaintext>convert 1 ly (light year) to inches</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15211a0195597422aia0000065e6d14c6f08ci3d?MSPStoreType=image/gif&amp;s=15'
alt='convert 1 ly (light year) to inches'
title='convert 1 ly (light year) to inches'
width='213'
height='18' />
</subpod>
</pod>
<pod title='Result'
scanner='Identity'
id='Result'
position='200'
error='false'
numsubpods='1'
primary='true'>
<subpod title=''
primary='true'>
<plaintext>3.725×10^17 inches</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15221a0195597422aia000005bi4d4g91aicge71?MSPStoreType=image/gif&amp;s=15'
alt='3.725×10^17 inches'
title='3.725×10^17 inches'
width='125'
height='18' />
</subpod>
</pod>
<pod title='Additional conversions'
scanner='Unit'
id='AdditionalConversion'
position='300'
error='false'
numsubpods='3'>
<subpod title=''>
<plaintext>9.461×10^12 km (kilometers)</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15231a0195597422aia0000068659i4h227h33hc?MSPStoreType=image/gif&amp;s=15'
alt='9.461×10^12 km (kilometers)'
title='9.461×10^12 km (kilometers)'
width='181'
height='18' />
</subpod>
<subpod title=''>
<plaintext>9.461×10^15 meters</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15241a0195597422aia000005gc149dcfi19d47h?MSPStoreType=image/gif&amp;s=15'
alt='9.461×10^15 meters'
title='9.461×10^15 meters'
width='126'
height='18' />
</subpod>
<subpod title=''>
<plaintext>5.879 trillion miles</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15251a0195597422aia000003f3h3ba8a976dcfb?MSPStoreType=image/gif&amp;s=15'
alt='5.879 trillion miles'
title='5.879 trillion miles'
width='111'
height='18' />
</subpod>
</pod>
<pod title='Comparisons as distance'
scanner='Unit'
id='ComparisonAsDistance'
position='400'
error='false'
numsubpods='2'>
<subpod title=''>
<plaintext> ~~ ( 0.24 ~~ 1/4 ) × distance from Earth to Proxima Centauri (~~ 4.2 ly )</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15261a0195597422aia0000033157fga27g1c5e8?MSPStoreType=image/gif&amp;s=15'
alt=' ~~ ( 0.24 ~~ 1/4 ) × distance from Earth to Proxima Centauri (~~ 4.2 ly )'
title=' ~~ ( 0.24 ~~ 1/4 ) × distance from Earth to Proxima Centauri (~~ 4.2 ly )'
width='418'
height='18' />
</subpod>
<subpod title=''>
<plaintext> ~~ 63000 × astronomical unit ( 1.495978707×10^11 m )</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15271a0195597422aia0000028dba13c2264iei0?MSPStoreType=image/gif&amp;s=15'
alt=' ~~ 63000 × astronomical unit ( 1.495978707×10^11 m )'
title=' ~~ 63000 × astronomical unit ( 1.495978707×10^11 m )'
width='322'
height='18' />
</subpod>
</pod>
<pod title='Interpretations'
scanner='Unit'
id='Interpretation'
position='500'
error='false'
numsubpods='2'>
<subpod title=''>
<plaintext>length</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15281a0195597422aia0000049bi6ea18ab9855g?MSPStoreType=image/gif&amp;s=15'
alt='length'
title='length'
width='42'
height='18' />
</subpod>
<subpod title=''>
<plaintext>distance</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15291a0195597422aia000005143a02i6he026a0?MSPStoreType=image/gif&amp;s=15'
alt='distance'
title='distance'
width='54'
height='18' />
</subpod>
<states count='1'>
<state name='More'
input='Interpretation__More' />
</states>
</pod>
<pod title='Corresponding quantities'
scanner='Unit'
id='CorrespondingQuantity'
position='600'
error='false'
numsubpods='2'>
<subpod title=''>
<plaintext>Light travel time t in vacuum from t = x/c:
| 1 year</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15301a0195597422aia000000g5a1908a6ag1500?MSPStoreType=image/gif&amp;s=15'
alt='Light travel time t in vacuum from t = x/c:
| 1 year'
title='Light travel time t in vacuum from t = x/c:
| 1 year'
width='282'
height='41' />
</subpod>
<subpod title=''>
<plaintext>Light travel time t in an optical fiber t = 1.48x/c:
| 1.5 years</plaintext>
<img src='http://www4a.wolframalpha.com/Calculate/MSP/MSP15311a0195597422aia000002ha7g9711b5i38ib?MSPStoreType=image/gif&amp;s=15'
alt='Light travel time t in an optical fiber t = 1.48x/c:
| 1.5 years'
title='Light travel time t in an optical fiber t = 1.48x/c:
| 1.5 years'
width='320'
height='41' />
</subpod>
</pod>
</queryresult>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment