{"id":766,"date":"2018-06-16T15:20:22","date_gmt":"2018-06-16T13:20:22","guid":{"rendered":"https:\/\/aerospaceresearch.net\/?p=766"},"modified":"2018-07-21T21:28:49","modified_gmt":"2018-07-21T19:28:49","slug":"gsoc2018vismashantanu-week-03-05-integrating-the-integrator","status":"publish","type":"post","link":"https:\/\/aerospaceresearch.net\/?p=766","title":{"rendered":"[GSoC2018|VisMa|Shantanu] Week #03-05: Integrating the Integrator"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-706\" src=\"https:\/\/aerospaceresearch.net\/wp-content\/uploads\/2018\/05\/vismabanner.jpg\" alt=\"\" width=\"1280\" height=\"800\" \/><\/p>\n<p>This is <strong>GSoC <\/strong>log<strong>#02<\/strong> (view log<strong>#01<\/strong> <a href=\"https:\/\/aerospaceresearch.net\/?p=691\">here<\/a>). Here I will cover on what I have done in <strong>week<\/strong> <strong>#03-05<\/strong> and a gist of what has been accomplished in <strong>Phase I<\/strong> coding period.<\/p>\n<h5>Done so far &#8230;<\/h5>\n<ul>\n<li>Created <strong><em>parser.py<\/em><\/strong> which handles conversion of tokens to LaTeX or strings and vice-versa.<\/li>\n<li>Some simplification issues were fixed<\/li>\n<li>Integrated the <em><strong>differentiation.py<\/strong><\/em> and <strong><em>integration.py<\/em> <\/strong>to the project along with the step-by-step explanation.<\/li>\n<li>Support for partial differentiation and &#8222;partial integration&#8220; was added.<\/li>\n<li>The code was again refactored to decrease complexity and remove unused modules.<\/li>\n<li>Added <strong><em>factorize.py<\/em><\/strong> module. Can currently factorize polynomials.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>The<em><strong> differentiation.py<\/strong><\/em> works for all functions. The <em><strong>integration.py<\/strong><\/em> is a tough one. There are going to be many checks for integration as when to apply by-parts or some another method. I am working on a simpler version of integration by-parts algorithm. For now, VisMa supports basic calculus operations. Also, transform module was added to change from one function type to another.<\/p>\n<p>The below demo shows the newly added functionalities like factorizing polynomials, differentiating and integrating expressions with respect to a variable.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-773 alignnone\" src=\"https:\/\/aerospaceresearch.net\/wp-content\/uploads\/2018\/06\/Demo.gif\" alt=\"\" width=\"1000\" height=\"617\" \/><\/p>\n<div data-blogger-escaped-style=\"font-weight: 400; margin: 0px;\">\n<h3><b>Phase &#8211;\u00a01 deliverables:<\/b><\/h3>\n<ul>\n<li>Modules created:\n<ul>\n<li>Functions &#8211; All function classes added<\/li>\n<li>GUI\/Plotter &#8211; Graph plotting added<\/li>\n<li>IO\u00a0&#8211; Input, output parsers<\/li>\n<li>Transform &#8211; Change one function type to another<\/li>\n<li>Calculus &#8211; Diff and integrate<\/li>\n<\/ul>\n<\/li>\n<li>Issues fixed:\n<ul>\n<li>Refactored code to follow object\u00a0class style<\/li>\n<li>Rectified equation\/expression simplifications<\/li>\n<li>Embedded solver into main GUI<\/li>\n<li>Reorganised code into smaller modules<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5><b>What I will be doing next &#8230;<\/b><\/h5>\n<\/div>\n<div data-blogger-escaped-style=\"font-weight: 400; margin: 0px;\">\n<p>The next thing which I will work on is a basic equation solver. For making the equation solver modules like factorization, expression multiplication and division are required.<\/p>\n<p>Also as the number of functions are increasing, the cases to\u00a0test are increasing. I will try to automate testing using unit tests.<\/p>\n<p>Most of the time of <strong>phase II<\/strong> period will be spent on working on all kinds of solvers. Also, calculus functionalities will be enhanced and support for more types of functions will be added.<\/p>\n<p>Link to\u00a0<a href=\"https:\/\/github.com\/aerospaceresearch\/VisMa\/tree\/dev\">project source<\/a>\u00a0and\u00a0<a href=\"https:\/\/github.com\/aerospaceresearch\/VisMa\/projects\">to-do board<\/a>.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is GSoC log#02 (view log#01 here). Here I will cover on what I have done in week #03-05 and a gist of what has been accomplished in Phase I coding period. Done so far &#8230; Created parser.py which handles conversion of tokens to LaTeX or strings and vice-versa. Some simplification issues were fixed Integrated &hellip; <a href=\"https:\/\/aerospaceresearch.net\/?p=766\" class=\"more-link\"><span class=\"screen-reader-text\">\u201e[GSoC2018|VisMa|Shantanu] Week #03-05: Integrating the Integrator\u201c<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts\/766"}],"collection":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=766"}],"version-history":[{"count":7,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions"}],"predecessor-version":[{"id":842,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions\/842"}],"wp:attachment":[{"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aerospaceresearch.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}