Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.604-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.604-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.604-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.604-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.604-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.604-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.604-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.604-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.604-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.604-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.604-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.604-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.604-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.604-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.604-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.604-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.604-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.604-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.604-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.604-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.604-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 934d3afff5a4ca7ee513eaabc132e9bc4b9ca36799f6f03e72ebb37d4b68ee12
MD5 445221ea33f7ed87eeb525a155a369e3
BLAKE2b-256 ccca49a1548c053a64cf4c95297fc318269dd9debb39e3b49d04a94c5ba20ffa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.604-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.604-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0445acf73ec5d4c259b94b9a874fcd04bff1945552be166724d6c85a91ca9873
MD5 ecc53bda59dd128e4b3bb5ebfd007922
BLAKE2b-256 0ef3f60329f4fead8583de2ff4d915905d2533f8ebf0d796ff786be0ab13c298

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6480bde2c091a1da196378919dafff7bd71374c622a52db7e1880280a97267d0
MD5 1dad11bb2e52475080a54a207a4603f0
BLAKE2b-256 e85ac8d027070c550a317b43f84bb4eac283239f4bd3902906a20f8eb91fc836

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97aba266acff8f90134c469c5b22aa2ca15b37e9f978dc2d791a8eeddcf69883
MD5 ec1d5522417335ce3a11b5e68c68a2b9
BLAKE2b-256 e454d23d3f1bcc40f6db8df1dfeb55c227f709c8674454c3281bf84977530668

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7361e424e8f332024663c7f73f09629c1bc6f0af4d870fce127f1b75835eddf3
MD5 ea25895a865b4f034d218afd43a45cfc
BLAKE2b-256 8a7518845bb7b5326467b9cd7e1d636e1cbda6dba88758391584bfeb58c7a453

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.604-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.604-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 001b1d4b063a245b8d635928490dde2d6951c9c0c2cfd2ead68bbace430225b0
MD5 6bc44174a075615bdd0289002d948e3a
BLAKE2b-256 5eb5c72edeec3c29bd5f4542def5db8e0766963c1a30fe0905a643233f88680f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1666f82224ab1b4dffef84c5369b355efb9e25abebe35b13631f14deccc9b40
MD5 caaed57ba9e4e284a49d4074a0f31a51
BLAKE2b-256 46630a9537003e1bb242e99b1f6374f4353fed89366cd72b70279cfc788785e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbb48b109746cc7c6d2bc6698d213f472626d767b1f9d71ab393bbdffd7780bd
MD5 add6ed637e29bc9f77fd1f9d1df93a12
BLAKE2b-256 b31fbf0327139b27c491f6cf3f556ba48fe3368087b1c03747398bbb3dbf2c40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b0a00be51d8a6c985cbd4a4625fbab0387f9bf7387a8a0d791bfa4ae5f9fb7f
MD5 b97e06ba5a9f060f865370bf89c9d17c
BLAKE2b-256 151a0017d9854fdd97a1a4ea8b6397b899e92f66ca669aa1bd99a1a11ccd9549

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.604-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.604-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6293049cbe7e710f7fbc014c8ba5216de803a29a6d2276b4fe79ef72357058bd
MD5 64f7ee7d43b3917cb037e08b1962e5ba
BLAKE2b-256 dfecf9beed745b41bc68ebffe2accfc807e5d6ac1c32dba0ae460ddc34706f0d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 809660ca4b042e9adff3dfd4c9c4ebdc96b4368a222e4d247f7b45ffe9968476
MD5 3659e08611696c367a6e36f78870fdea
BLAKE2b-256 6c74acd257bd8b1d723df94fde4b95c1ec36df250d383a2ca0e6accba8d57ba4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 527902c3990bb6ed8c74d664fe1830de80d9cf271e0ef960cf670279f0aee9cb
MD5 fc937633bb1eb105939afaf3ea7b79ec
BLAKE2b-256 80a592b03e7f3452d980d61a1640f86f98666b3492e67d290c51195331f830b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.604-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.604-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8d7e85652dba78792318a5486cc7ec77fced564b5e585c0f67fccf08920b68a9
MD5 ea12704f123593c7c96a2cf3c4740236
BLAKE2b-256 15eaa7bb2d4a48d9c2ee616ef0261a65d03a10a5dc438bf65048201f932b884e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.604-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.604-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9cd97b8fff7a28293c8b20c64f279bc31fd77de9e96e3b9a975d425ad1bef3e6
MD5 0a668bd8b01436eb7db350c6bdd6472a
BLAKE2b-256 a088beae051a5e86754fc89d1729fa4a27357a579004a2efc4580d7825975ce1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8dbed0e2bb41dc7983da3888992da9f2b313b93e6c0a5021596805f4417cbeb3
MD5 8eac4b0d7f31b53185c22b51032e1b56
BLAKE2b-256 fd970015a6afb19a19ec63ab4e636db6cbb616ab5dcfdcfc6963712cafbc0d3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd4db26d49998bbd0f7ed632114752a04c89a6b9e7be5a1ca0fcbfaf8e0cc600
MD5 da3bf550523bfb4cfbd725e043dadbe2
BLAKE2b-256 01592d50142057d2e913fd096fa06be0de77614ab7f0bc900c2cdb6115712bd8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.604-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.604-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f471287c5a44abbb9aa3b024466736b11780de54569bfe0fa927d7d58464f64e
MD5 d0f964a08237cbb061742a062d5e12e1
BLAKE2b-256 a0c77ab26ed09f3586eeb68ee16d706a892011b0e7a0a4da7ba734ddc3947c34

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.604-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.604-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7d8be8f90488d5350f62df955a4f3157050be6fc85dccdb9cff7cc7604cc126c
MD5 8011896c882d3c325c54bcb4dad632fd
BLAKE2b-256 061cdd8765347678485c8dde678fba52c41446bb9ccc59a600ba3c194c4bb56e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b966ecdff5a8ea1ab37144285fb381e8d1aeb54f079c3b24f5663fdb9f79202
MD5 3414d53fcaca21c335ad8b0b17d78a8a
BLAKE2b-256 3327853993a07da0abb0aec6c40a6f881ace53aed6105c8fd19cc25a6cfb1d39

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.604-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.604-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ea23c0a75f1f7cd54ee911714b82278c77f9a70475d595566fa758204ea85ef
MD5 b9c4f08839d0c392b41038d34f044130
BLAKE2b-256 45d85595c9209c03a6ae45cb9eca48c49a2e3d1964086727f04ea5984bcb2ae7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page