Code Monkey home page Code Monkey logo

legendre-differential-equations-calculator-software's Introduction

Building Software to Calculate Legendre Differential Equations

generic-mapping-tools.org

Picture Source: Generic Mapping Tools


Statement

The aim of the project, as can be understood from the title, is to developing an application that can calculate legendre differential equations with Python 3.7 and save them in excel table. These operations were carried out through the PyQt5 library and the Designer application. In addition, you can find variations of the program (with graph, without graph) in the branch.


Methodology

Unnormalized function

$$P_{nm}(t) = 2^{-m} \cdot (1-t^{2})^{\frac{m}{2}} \cdot \sum_{k=0}^{r} (-1)^{k} \cdot \frac{(2n - 2k)! \cdot t^{n-m-2k}}{k!(n-k)!(n-m-2k)!}$$


Normalized function

$$P_{nm}(t) = 2^{-m} \cdot (1-t^{2})^{\frac{m}{2}} \cdot \sum_{k=0}^{r} (-1)^{k} \cdot \frac{(2n - 2k)! \cdot t^{n-m-2k}}{k!(n-k)!(n-m-2k)!} \cdot \sqrt{\frac{2^{2(n+1)} \cdot (n-m)!}{(n+m)!}}$$


In mathematics, the associated legendre polynomials are the canonical solutions of the general legendre equation. This equation has nonzero solutions that are nonsingular on (−1, 1) only if n and m are integers with 0≤m≤n, or with trivially equivalent negative values. When in addition m is even, the function is a polynomial. When m is zero and n integer, these functions are identical to the legendre polynomials.

In this part of work we are going to calculate the values of the $P_{nm}$ normalized values. normalized.png is the mathematical equation of normalized legendre equation and unnormalized.jpg is the mathematical equation of unnormalized legendre equation. Normalized values were calculated in project.


UI Overview:


Analysis

You can examine the excel output, where n and m values ​​are 10, on the output.xlsx file. The same output is also shown in the application interface. In order for it to be saved as Excel as optional, it must first be written in the relevant field, indicating the name of the file. (for example: 'C:\Users\User\Desktop\output.xlsx')


File Conversions

Before doing these operations, you need to go to the location on command prompt where the Calculating_Pnm_excel.ui and Calculating_Pnm_excel.py files are located. These procedures were done by myself. You are free to make .exe file from .py file. Those who are curious about how it is made or who want to learn can try this section on their own.

.ui to .py

python -m PyQt5.uic.pyuic -x Calculating_Pnm_excel.ui -o Calculating_Pnm_excel.py

.py to .exe

pyinstaller.exe --onefile --windowed --icon=app.ico Calculating_Pnm_excel.py

Contact Me

If you have something to say to me please contact me:

legendre-differential-equations-calculator-software's People

Contributors

doguilmak avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.