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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.52-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.52-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

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

simple_equ-1.2.52-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.52-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.52-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.52-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

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

simple_equ-1.2.52-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.52-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.52-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.52-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

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

simple_equ-1.2.52-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.52-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.52-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.52-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

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

simple_equ-1.2.52-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.52-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.52-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.52-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

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

simple_equ-1.2.52-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.2.52-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7e0c9c6fdbc4de1451748a4a00a46263ce6acbc36449058458f95c0dd417a372
MD5 b26d79010dc443b3a363f95f07dce4e2
BLAKE2b-256 f31a807bc7dd98d067ac3970d3cd2767419e5ce2453e9348aefb4dae4da99a2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.52-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 07fabe45204a54bea7ba48f8772bdaf44de0b4c060448fa4a98ebb38593bfe38
MD5 779a8e371e4c0384159824a7a1bf7c7b
BLAKE2b-256 20044a401dcf9bba9294b352bc8ca91981aa5c6a9edd1ddfef4651adc6d341a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.52-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.2.52-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1d0c310816192277266d2f463ece1b8a66f59cf6dcb90b1c136243cc8a45a9f
MD5 464db2ce38b1dfef037c3a95d3ae1161
BLAKE2b-256 eabf73f43553fd614add1b6fb9e150b933d96cea74d47180bed6322d2a89b605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.52-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6a2205e4f28cf13c8702889f86223386a0ba38246e758590e0d7ab8683df1c2
MD5 ea3898a585882e6aefcd7412e33356c1
BLAKE2b-256 ebcf810a131e3b5659412387fe5a1949c8b366741f40aa82cde043651204ff22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.52-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0a87474e457c537df13fa7776c5dff69bee1bbda2f2d1c0f232a4740d9f459dd
MD5 088b9de15d01189ea1fa5ac936b3a8eb
BLAKE2b-256 78bfbd56c35940b781a189335926fdf494867e914270d56e520ac9653932b658

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.52-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 17bafa28694a5638691490964e881df152d414956dcc98caf501fe240e4963ab
MD5 83a9f49e02efb625e3824d47f276e031
BLAKE2b-256 1368c975bc13f89331cc8f37f7f084550a44486a677fae98403f1e32f8af2b91

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.52-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.2.52-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ef696f21596c8591bd9713d81d55a875f7303e873c551c7bbdc55aa470de3e7
MD5 f1eb3ccf5901b0c36d1edd7269a6059d
BLAKE2b-256 1030fcc9c2844d509995d0f88e36fe908158aa748d57a65ea7ade506ff44554c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.52-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e89e7d1c529b04311ee0e76dab5f70e9d189de4bb60553baddf19d0cbf6283f4
MD5 c3eb3231404d39601fd25806b188ea28
BLAKE2b-256 7e485cd5a3afeaf121515b1dd0b7e671240a63697e2f884d69a474a88669c7e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.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.2.52-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1e462b23e76ddd9df9fcf6c61a109008576ee3a7b3a39ec441236bc8fd94418
MD5 2718bb90f891c27f1b3b471e90abea01
BLAKE2b-256 2816f2d6e96a1280cba5f344081ebae644e94b83441ce311f21dc6bf5e6075bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.52-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c9448db137276ef5586503b557d2c977a08da9e1147804a7749019ce1efa5b51
MD5 c980270e7665095b032d13f192243d3f
BLAKE2b-256 f4a3e45348672d00cf5fe26bf3d22e9dfe858e92a02ace6d80a808c6da722bd9

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.52-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.2.52-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49f2e5368f539185ce031b9117c4e2d15266c377d51cbec6edbe6b1c2c78f23f
MD5 1a17659bce67947957c0217c7c9c1eb8
BLAKE2b-256 57e3bb28cf48bf9bd6ac84ec354bd65a3787e7cee24b7dff587656eb311035cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.52-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a25569866f758e00dd036da7596eae5ff847af4e1147ab261404eac71b2ed50f
MD5 4a21cb8cc3846040c4bd2e054b0d10ac
BLAKE2b-256 fc535a692f4bae491dab0d11827ff65114232ef513dedc8ddfc030163283d83c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.52-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f193fb96da7f8eebcd9323aaa841276e18057518c18d0a599ccf6ae0ecbb57c1
MD5 975db49c92cabf48bf6138fa7eee4dbe
BLAKE2b-256 4a392a493a6039f46ca4d6d097c0a92328ffa95726fc0c1b75a12f8af00d290c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.52-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 524a6ff278063b2b2f621973a37fddb6f574557250dcdcfe19fd3f722ee09e02
MD5 af0f1ed81098f9cdc5352932da19975a
BLAKE2b-256 64035d879a789eb8870251f3f55bb3aa95a9e3543e3c7f13922cc6db136aa198

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.52-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.2.52-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b816dbf9c4b847aac428de521049024e284d81a7971b2d44b6df05755373d21
MD5 1ccb02ec9e1a4e66a25061611fe2ea41
BLAKE2b-256 eaa69e9b724cc1a295f981edf3fc8aea8d1abf684c554be938accf4e45864bd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.52-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de4a953b18ffed5a091898b66e67da4489354ec11c14f9c618d81719942a30fb
MD5 10c18295ed2b79a22631dfa0f677c3ca
BLAKE2b-256 ec834d157983b2e02ede7f0c2129253d668ed247ad36d8f88f4ffd84bea1c946

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.52-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 981490a1a2c268d2d71da0462e9ce08ebaa673cb518b595c8429f543bfcf3f6c
MD5 482b526644f4f8734ca2474dc56bc281
BLAKE2b-256 03873e3bcc36ba943241ed4a0b36b1fc0c14a9ad7af58a519b9de7ffa26041b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.52-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.52-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 27cf24318e52c530733ef8b20e6341da7a40138e790b4149298e3f6807745be4
MD5 7a514697ee4a946b2651d308eac8d80f
BLAKE2b-256 2cf83a62e12e4d01b0523f1b4b0acaf8c5233ea191fcec5529296ba0bd808496

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.52-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.2.52-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8d9d625b17ccc1c3edca1645a688d694f22386e6c8f9b1fe7801631166fb4fc
MD5 81b62fcc1a5476af0624ad57ae3629bf
BLAKE2b-256 2a546c4a725f80752c1130ebb5d93f89b20c70e429cb89d439efcbb13b5cadd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.52-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b421aa679112009b75618441f92077e3140685900bf82d6ea5ede7c28bf70ddb
MD5 71b73838f0a8a8b43cc0f8de4954e9a3
BLAKE2b-256 38081752018574ce3146552da8e9fee5a2979eeeec99bd0203a8f28bac879434

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