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.47-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.47-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.47-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.47-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.47-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.47-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.47-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.47-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.47-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.47-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.47-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.47-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.47-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.47-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8ace95200c4813c2eb6fc06dca14e6e8c39d64338d0f8b33d712ffc602e5d6c6
MD5 c1b2172a29ffb2ac470cff1f016a87cb
BLAKE2b-256 8d99945c55be1739a3e4cd475109fa6481adf1f7ec370a5f62018740e980825b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-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.47-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f25223c598a613b5a128caf260a8004073b97e3e53fa46019f0202ba154e21b2
MD5 a0ebc3567652b6c78ecd43daa945a53f
BLAKE2b-256 5809a4ff6ddc4c3fe2280d0ac773736432f0088a597100d5f12128a1760cdae5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.47-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.47-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d114b2a3bd6c9bc02110bcd90310f549c36a8034bb147d83f15989145322535e
MD5 c7df3724fd33de4dffd7becd44218ef1
BLAKE2b-256 874247238196cb37dce3831acc7312f81942bb63c00994056d79dc2067603b03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.47-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aec02315ef91288677d580930d478bcd984affca3edf391d039557e5cbd42f57
MD5 177e1eefa62e2ff4de8dcccd070bcf8f
BLAKE2b-256 ab9f8c51aa2bc2dc30a8dc930cbb7d3a851aaac919bb8d722fef48022f3f69ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.47-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 02bbb4a9e4a96713104971c15c6dc656ebc789cce344b155ca41647168c4713e
MD5 610acdd16491496252e640cdf653a48c
BLAKE2b-256 b58cfbc163b41bf312f83f0f38008df7854f79aaf4c753330d44d7f41910a41c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-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.47-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7ec1223f04a45e9d46410ff635a5cd776fa6cdad6a5e01a00a0b306555b31922
MD5 df9b6492cd87cf5a03d6cdc1754c9db6
BLAKE2b-256 5e6ec704244dca205903e6bf4a4f45fcc045b0c5ae1be226cb2bb54bbf19405f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.47-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.47-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb03f76bdd4933ccb151dbe0ee6f398ed8194eef6b9bfe595c038034b272962e
MD5 1322daf10e36bcb3a4ac2a2fbd13013e
BLAKE2b-256 2dc4e42014478878437fb77e1b92b34c68c9f28dc7a30e62f5eba6fe0d077288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.47-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12873029fff38fec1d54ec4c3d1dbfb9f707d8a7c632b691d68aa9355ccb41ca
MD5 f4fe505149ae1b1b3a5a7e8393fe5eb8
BLAKE2b-256 d5b4f6d2181585bd7d8d4e5824ae122c0870ee8be2bf02b863836e2a53a030fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.47-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 333b27778286c65ce57372bfd293743b04eb08b8fd33c74d8d17f604eb879ef5
MD5 20fa18bddfa4a5327f11c36bb4ffc6ae
BLAKE2b-256 deeb62d16df09375aa4b3791f601308f5627dfdd172daf02897f2524c4bb6647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-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.47-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f0a19c5efe001e4c874980e624659282bf091683a5ebb1c7be1a69b38e85a1e3
MD5 3f3126cc3a6657663159a78cefbad502
BLAKE2b-256 b8685f39e0f03f77dce70b1d187b261e3e4114d7376fb2dd91d83a071841967b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.47-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.47-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c060da5d5331a61842e62b1bd0677a35844066f13933e5e70153294f282fe27
MD5 999c0e0f7edfe6a8d97ba6e5606fb946
BLAKE2b-256 c41101b22f27a5f5ade5e599063e12ded75cf08e8ad5a01cb600fd60ed32f343

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.47-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eae499981e294f7b04dc4bcf671cdf76589d820847d6146a2d77a8d3d1a7bdde
MD5 3e7842c5711f43d0b98f901f66b1fecd
BLAKE2b-256 3c0baf1facd1190ff0e305171291e28261253efd135a6d6bc6df015cacf0366c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-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.47-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9e61a4e9e731144702204b983da72483611a333e3114cb95825c58cc8fd08a6d
MD5 cc3e8e06e58619ed1eb10026316c7d89
BLAKE2b-256 eb9bf78149c0fdb152a65a67166f047a71b2ffef5a21977d0097d0b1218dcccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-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.47-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d3963700d954f6fa8ac02d6fe06fd017f0ed89e86a93e5471782c69225addf1b
MD5 c8c60151fba0be304ea7fb8760525094
BLAKE2b-256 61c00de0f5b02d066713fb08a7a64233f168720c7128c8737b4a3176157d3a09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.47-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.47-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0701333fc673069ba3c22e4ffc1380720c05902934d7eedebe6c7c03a43416bc
MD5 78917f13bd15c71790133e2b7b9a1234
BLAKE2b-256 cd170210f84e679cdf6cedb47469e5e0644b19a7e7769b8ac3d23074b243f7be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.47-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db758049a9618984b2729479427ffe7dcf58b096d06aecad4ccb2d54f802c844
MD5 cf76bb84394a3601fd59ff60baef3afd
BLAKE2b-256 c8c5f369db17b4976521a86e29b052d3b14867214d06d5a9b45dc56863321479

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-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.47-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bbd700c4396c14fa016c5c104fb4b1956d13be91463e6a5faa906f0c93215c27
MD5 515ad4dc8eb24eacf1532f15570fc58b
BLAKE2b-256 b80a7be3f014c24069b332c9249ebe39e61d67921caf55244c182c196fb97bdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.47-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.47-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6a5af69a320aca508b189600ef2fb96f8d276df10a949e208e8fc2fcb8a7fd5b
MD5 a65f879c1603173849a50c8997294ef9
BLAKE2b-256 6dd130607801df4660b879fb0c8e18b4335992d6a19941ddc9b37aa4358e8d59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.47-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.47-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9695ca84dc17fcc1432b178221ed6dea15fa6845e921bb6a041e48611d6a3c4e
MD5 d2352d0326b924c847af167e6455cfcb
BLAKE2b-256 1904816587f0c087ec4a0c1682662f992bab323950191e1ccbb052a43bcf447e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.47-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bb424a779509611dbb83050f1c9bb954de57c860728de4a3479d8a1d57f2729
MD5 4798cc9429079fbde59691ccbc81791b
BLAKE2b-256 efe894b0861ef5697d5740f741e2ef3f290ee1ee8b727dca6624ba021d398ba8

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