{"id":4285,"date":"2026-04-22T09:24:22","date_gmt":"2026-04-22T03:54:22","guid":{"rendered":"https:\/\/www.rangakrish.com\/?p=4285"},"modified":"2026-04-22T09:24:22","modified_gmt":"2026-04-22T03:54:22","slug":"exploring-astronomy-with-wolfram-mathematica","status":"publish","type":"post","link":"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/","title":{"rendered":"Exploring Astronomy with Wolfram Mathematica"},"content":{"rendered":"<p>As a student of astrology and who has written software for <a href=\"https:\/\/www.kpastrosoftware.com\/\" target=\"_blank\" rel=\"noopener\"><em><strong>Krishnamurti Padhdhati (KP) System<\/strong><\/em><\/a>, I am fascinated by astronomy. We all know that there is a deep <em>computational<\/em>\u00a0connection between astronomy and astrology. Every astrological system \u2014 <em><strong>Western tropical<\/strong><\/em>, <em><strong>Vedic sidereal<\/strong><\/em>, <em><strong>KP<\/strong><\/em>, <em><strong>Jaimini<\/strong><\/em>, <em><strong>Chinese<\/strong><\/em> \u2014 is ultimately dependent on an ephemeris, and ephemerides are pure astronomy. Planetary longitudes, the ascendant calculation, house cusps, lunar node positions (<em><strong>Rahu<\/strong><\/em> and <em><strong>Ketu<\/strong><\/em> are just the <em><strong>Moon&#8217;s<\/strong><\/em> ascending and descending nodes), eclipses, retrogrades \u2014 all of these are outputs of orbital mechanics.<\/p>\n<p>For exploring the field of astronomy, I can\u2019t think of a better tool than <a href=\"https:\/\/www.wolfram.com\/mathematica\/\" target=\"_blank\" rel=\"noopener\"><em><strong>Wolfram Mathematica<\/strong><\/em><\/a>. I have written several articles on this tool. In today\u2019s article, I want to cover some of the basic ideas from <em><strong>Mathematica<\/strong><\/em> in the context of astronomy.<\/p>\n<p><b>AstroPosition: Where is it, right now?<\/b><\/p>\n<p>The simplest astronomical question we can ask is <em><strong>&#8220;where?&#8221;<\/strong><\/em> Where is the <em><strong>Moon<\/strong><\/em>? Where is <em><strong>Jupiter<\/strong><\/em>? These are answered quite easily. See the interaction below:<\/p>\n<figure id=\"attachment_4286\" aria-describedby=\"caption-attachment-4286\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/position-example.png?ssl=1\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"4286\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/position-example\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/position-example.png\" data-orig-size=\"1222,944\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Planetary Positions\" data-image-description=\"&lt;p&gt;Planetary Positions&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Planetary Positions&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/position-example-1024x791.png\" class=\"wp-image-4286\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/position-example-300x232.png?resize=600%2C464&#038;ssl=1\" alt=\"Planetary Positions\" width=\"600\" height=\"464\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/position-example.png?resize=300%2C232&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/position-example.png?resize=1024%2C791&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/position-example.png?w=1222&amp;ssl=1 1222w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4286\" class=\"wp-caption-text\"><strong>Planetary Positions<\/strong><\/figcaption><\/figure>\n<p>The parameters <em><strong>\u201chorizontal\u201d<\/strong><\/em>, <em><strong>\u201cEcliptic\u201d<\/strong><\/em>, and <em><strong>\u201cEquatorial\u201d<\/strong><\/em> are different frames of reference. We can also specify the location as well as date as needed. The first time we evaluate these functions, <em><strong>Mathematica<\/strong><\/em> automatically downloads the ephemeris data.<\/p>\n<p>We have all heard of the <em><strong>\u201cGreat Conjunction\u201d<\/strong><\/em> that happened in December 2020. Let us check that!<\/p>\n<figure id=\"attachment_4287\" aria-describedby=\"caption-attachment-4287\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/great-conjunction.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"4287\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/great-conjunction\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/great-conjunction.png\" data-orig-size=\"1404,182\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Jupiter-Saturn Conjunction\" data-image-description=\"&lt;p&gt;Jupiter-Saturn Conjunction&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Jupiter-Saturn Conjunction&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/great-conjunction-1024x133.png\" class=\"wp-image-4287\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/great-conjunction.png?resize=600%2C78&#038;ssl=1\" alt=\"Jupiter-Saturn Conjunction\" width=\"600\" height=\"78\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/great-conjunction.png?resize=300%2C39&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/great-conjunction.png?resize=1024%2C133&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/great-conjunction.png?w=1404&amp;ssl=1 1404w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4287\" class=\"wp-caption-text\"><strong>Jupiter-Saturn Conjunction<\/strong><\/figcaption><\/figure>\n<p><b><i>AstroFindEvent: When did it happen?<\/i><\/b><\/p>\n<p>There are several functions to find the exact dates on which planetary events happen, for example, <em><strong>Rising<\/strong><\/em>, <em><strong>Setting<\/strong><\/em>, <em><strong>New Moon<\/strong><\/em>, <em><strong>Full Moon<\/strong><\/em>, <em><strong>Eclipses<\/strong><\/em>, etc.<\/p>\n<figure id=\"attachment_4288\" aria-describedby=\"caption-attachment-4288\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/events1.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"4288\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/events1\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/events1.png\" data-orig-size=\"1144,1102\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Timing of Events\" data-image-description=\"&lt;p&gt;Timing of Events&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Timing of Events&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/events1-1024x986.png\" class=\"wp-image-4288\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/events1.png?resize=600%2C578&#038;ssl=1\" alt=\"Timing of Events\" width=\"600\" height=\"578\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/events1.png?resize=300%2C289&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/events1.png?resize=1024%2C986&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/events1.png?w=1144&amp;ssl=1 1144w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4288\" class=\"wp-caption-text\"><strong>Timing of Events<\/strong><span style=\"font-size: 16px;\">\u00a0<\/span><\/figcaption><\/figure>\n<p>As you can see, we can even specify dates (after which the event happens) and the geographical location of view point.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>Talking of <em><strong>eclipse<\/strong><\/em>, we can even draw a corresponding map!<\/p>\n<figure id=\"attachment_4289\" aria-describedby=\"caption-attachment-4289\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/eclipsemap.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4289\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/eclipsemap\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/eclipsemap.png\" data-orig-size=\"1322,916\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Map of Eclipse\" data-image-description=\"&lt;p&gt;Map of Eclipse&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Map of Eclipse&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/eclipsemap-1024x710.png\" class=\"wp-image-4289\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/eclipsemap.png?resize=600%2C416&#038;ssl=1\" alt=\"Map of Eclipse\" width=\"600\" height=\"416\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/eclipsemap.png?resize=300%2C208&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/eclipsemap.png?resize=1024%2C710&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/eclipsemap.png?w=1322&amp;ssl=1 1322w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4289\" class=\"wp-caption-text\"><strong>Map of Eclipse<\/strong><\/figcaption><\/figure>\n<p><b><i>AstroGraphics: What does it look like?<\/i><\/b><\/p>\n<p>Just as the eclipse map above visually shows the elements of the eclipse, <em><strong>Mathematica<\/strong><\/em> has a function that acts as a <em><strong>\u201cwindow\u201d<\/strong><\/em> to the celestial sphere. Let us look at some examples.<\/p>\n<p>The easiest<span class=\"Apple-converted-space\">\u00a0 <\/span>is to view a map of the <em><strong>current sky<\/strong><\/em>. Here is how:<\/p>\n<figure id=\"attachment_4290\" aria-describedby=\"caption-attachment-4290\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/currentsky.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4290\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/currentsky\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/currentsky.png\" data-orig-size=\"1314,1114\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Current View of Sky\" data-image-description=\"&lt;p&gt;Current View of Sky&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Current View of Sky&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/currentsky-1024x868.png\" class=\"wp-image-4290\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/currentsky.png?resize=600%2C509&#038;ssl=1\" alt=\"Current View of Sky\" width=\"600\" height=\"509\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/currentsky.png?resize=300%2C254&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/currentsky.png?resize=1024%2C868&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/currentsky.png?w=1314&amp;ssl=1 1314w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4290\" class=\"wp-caption-text\"><strong>Current View of Sky<\/strong><\/figcaption><\/figure>\n<p>A slightly more interesting example is to render the <em><strong>weekly movement of Sun<\/strong><\/em>. Take a look the the following:<\/p>\n<figure id=\"attachment_4291\" aria-describedby=\"caption-attachment-4291\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/weeklysun.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4291\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/weeklysun\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/weeklysun.png\" data-orig-size=\"1342,1196\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Weekly Sun Movement\" data-image-description=\"&lt;p&gt;Weekly Sun Movement&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Weekly Sun Movement&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/weeklysun-1024x913.png\" class=\"wp-image-4291\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/weeklysun.png?resize=600%2C535&#038;ssl=1\" alt=\"Weekly Sun Movement\" width=\"600\" height=\"535\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/weeklysun.png?resize=300%2C267&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/weeklysun.png?resize=1024%2C913&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/weeklysun.png?w=1342&amp;ssl=1 1342w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4291\" class=\"wp-caption-text\"><strong>Weekly Sun Movement<\/strong><\/figcaption><\/figure>\n<p>In addition to <em><strong>AstroGraphics[]<\/strong><\/em> function, we also have <em><strong>GeoGraphics[]<\/strong><\/em>. The following shows <em><strong>Solar eclips<\/strong><strong>e<\/strong><\/em> over a period of time:<\/p>\n<figure id=\"attachment_4292\" aria-describedby=\"caption-attachment-4292\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/geographics.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4292\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2026\/04\/22\/exploring-astronomy-with-wolfram-mathematica\/geographics\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/geographics.png\" data-orig-size=\"1342,1068\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Solar Eclipse\" data-image-description=\"&lt;p&gt;Solar Eclipse&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Solar Eclipse&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/geographics-1024x815.png\" class=\"wp-image-4292\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/geographics.png?resize=600%2C477&#038;ssl=1\" alt=\"Solar Eclipse\" width=\"600\" height=\"477\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/geographics.png?resize=300%2C239&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/geographics.png?resize=1024%2C815&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2026\/04\/geographics.png?w=1342&amp;ssl=1 1342w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4292\" class=\"wp-caption-text\"><strong>Solar Eclipse<\/strong><\/figcaption><\/figure>\n<p>Of course, there is a lot more that we can do with <em><strong>Mathematica<\/strong><\/em>. It is definitely magical that with very minimal coding we are able to understand so much of astronomical phenomena! Take your time to experiment.<\/p>\n<p>For today\u2019s article, I have used <em><strong>Mathematica ver 14.3<\/strong><\/em>. Incidentally, what I have discussed is just a fraction of what is available in the software.<\/p>\n<p>You can download the Notebook <a href=\"https:\/\/www.rangakrish.com\/downloads\/Astronomy.nb\" target=\"_blank\" rel=\"noopener\"><em><strong>here<\/strong><\/em><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a student of astrology and who has written software for Krishnamurti Padhdhati (KP) System, I am fascinated by astronomy. We all know that there is a deep computational\u00a0connection between astronomy and astrology. Every astrological system \u2014 Western tropical, Vedic sidereal, KP, Jaimini, Chinese \u2014 is ultimately dependent on an ephemeris, and ephemerides are pure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,17],"tags":[457,456,43],"class_list":["post-4285","post","type-post","status-publish","format-standard","hentry","category-mathematica","category-programming","tag-astrology","tag-astronomy","tag-mathematica"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9OLnF-177","jetpack-related-posts":[{"id":3399,"url":"https:\/\/www.rangakrish.com\/index.php\/2024\/06\/08\/kp-astrology-rest-server-part-2\/","url_meta":{"origin":4285,"position":0},"title":"KP Astrology REST Server: Part 2","author":"admin","date":"June 8, 2024","format":false,"excerpt":"In my earlier article, I had briefly described the REST server I wanted to build for Krishnamurti Padhdhati system of astrology. After a long time I have managed to complete the implementation and it is now ready for deployment. In this article, I will go over some of its features\u2026","rel":"","context":"In &quot;Astrology&quot;","block_context":{"text":"Astrology","link":"https:\/\/www.rangakrish.com\/index.php\/category\/astrology\/"},"img":{"alt_text":"KPRest Application Window","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2024\/06\/Start-300x174.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":599,"url":"https:\/\/www.rangakrish.com\/index.php\/2017\/08\/30\/kp-astrology-rest-api\/","url_meta":{"origin":4285,"position":1},"title":"KP Astrology REST API","author":"admin","date":"August 30, 2017","format":false,"excerpt":"In today's post I want to share my experience in implementing a set of REST API calls for Astrology. The series on iLangGen will resume after this. As readers of this column probably know, I am the author of an Astrology software called KPAstro. You can read about it here.\u2026","rel":"","context":"In &quot;Astrology&quot;","block_context":{"text":"Astrology","link":"https:\/\/www.rangakrish.com\/index.php\/category\/astrology\/"},"img":{"alt_text":"Project Step 1","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/08\/Project-image1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/08\/Project-image1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/08\/Project-image1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1594,"url":"https:\/\/www.rangakrish.com\/index.php\/2019\/06\/08\/using-nodejs-in-mathematica-12\/","url_meta":{"origin":4285,"position":2},"title":"Using NodeJS in Mathematica 12","author":"admin","date":"June 8, 2019","format":false,"excerpt":"In an earlier article, I had described Python integration in Mathematica 12. In addition to Python, NodeJS is also supported as a default \u201cexternal\u201d language. In today\u2019s article, I will focus on NodeJS integration. By the way, NodeJS support was introduced in Mathematica 11.2. Before using NodeJS with Mathematica 12,\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"NodeJS Session Continued","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/06\/Session2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/06\/Session2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/06\/Session2.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/06\/Session2.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3626,"url":"https:\/\/www.rangakrish.com\/index.php\/2025\/02\/21\/using-openai-from-mathematica-part-3\/","url_meta":{"origin":4285,"position":3},"title":"Using OpenAI from Mathematica: Part-3","author":"admin","date":"February 21, 2025","format":false,"excerpt":"Let us continue our discussion on using Mathematica to interact with OpenAI (you may want to go through the earlier article as well). The simplest function to interact with the LLM is LLMSynthesize[]. As you might have guessed, this is a \u201csync\u201d (non-streaming) call. What if you expect a long\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Basic LLMSynthesize","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/02\/fig1-300x21.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/02\/fig1-300x21.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2025\/02\/fig1-300x21.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1560,"url":"https:\/\/www.rangakrish.com\/index.php\/2019\/05\/05\/python-integration-in-mathematica-12\/","url_meta":{"origin":4285,"position":4},"title":"Python Integration in Mathematica 12","author":"admin","date":"May 5, 2019","format":false,"excerpt":"Mathematica has had Python support since ver 11.2 through ExternalEvaluate[]. In ver 11.3 it was possible to input Python expression in a cell by beginning with \u201c>\u201d character. The good news is that Mathematica 12 has significantly enhanced this integration. Python Cells Let us start with the simplest way to\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Function References","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/05\/External-Evaluate-4.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/05\/External-Evaluate-4.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/05\/External-Evaluate-4.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":285,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/07\/22\/using-julia-to-interact-with-mathematica\/","url_meta":{"origin":4285,"position":5},"title":"Using Julia to Interact with Mathematica","author":"admin","date":"July 22, 2016","format":false,"excerpt":"Mathematica is a powerful environment for symbolic and numerical computation. I have been using it for many years now. In this post\u00a0I had explained how we can use Mathematica bundled with Raspberry distribution to control littleBits devices. When I saw that there is support in Julia for interacting with Mathematica,\u2026","rel":"","context":"In &quot;Julia&quot;","block_context":{"text":"Julia","link":"https:\/\/www.rangakrish.com\/index.php\/category\/julia\/"},"img":{"alt_text":"Julia Session","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/4285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/comments?post=4285"}],"version-history":[{"count":3,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/4285\/revisions"}],"predecessor-version":[{"id":4296,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/4285\/revisions\/4296"}],"wp:attachment":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/media?parent=4285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/categories?post=4285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/tags?post=4285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}