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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.38-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.38-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.38-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4f10e9383359642674fe40f4a311a23b542b9310676d2c79fd4a3c0c79507de2
MD5 3338d7805dec38402a1dd58b8ff9f14b
BLAKE2b-256 1a434ed86ba2e627e05bae16420a21305a989ec979c78d3053125dc1fd4fd492

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 81f6a251ce83e15b2d985f99e4a3317fe732a56a550e65f9bb65362599d06790
MD5 145446b703f313823dd8fae179c01bfc
BLAKE2b-256 40954a4323b7d95527f5d455f84369d417fe4df37c3e3590b9deda84957ad968

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.38-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.38-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a5c9f8e072a20760cd7ed9d880eb15d92a99b9c8de6226e10855c49e6b40d2f
MD5 5ceccb6caa989f08278b8864289999b2
BLAKE2b-256 1ba5586ce237d47c884cfbd05aa3de683f0a64ad1b723d49b624eb1ba8b191c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.38-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ed09be1afb9d9e480557370ac742abb4586bd2f3ee28a10a9f418beb07e3eed
MD5 b6db2e8bdcb84701afefe18752f7460f
BLAKE2b-256 578e385aca2981d5edeb2add69fa85d88203ed9857990e7117f8e87b1b2c0ab3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4fb36f8f08d8da1d7368afb8f1bdc92acb80fa72b6029c8b117fb4870e6e2602
MD5 a18b6d8d87af47c7d3db675856cc79a4
BLAKE2b-256 3e7cdc0721b9c6eb8e9c22cceddf25fd63f896a1e17dd19bdb58def6e67fc87d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 703c23a4c0bc960634584bafee0d7a7efd1b703ff83ef4f9a1268c7f527410b3
MD5 273bfd111c5c6364eec63c6de315fe0c
BLAKE2b-256 6b28117cd18fd56d83622b116920baa9e1f8f5b25355a12cd00ac7371981c239

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.38-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.38-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb5395036e9b5141e617144a87eadb67c0cfedd46175a34a15d605c92342467f
MD5 bfa492d6e911ffab72bc362ce37eec16
BLAKE2b-256 bdaef36a2ad9624ff77561691917a99e2048b67b430f46ee06ac8366d461ec6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.38-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c5691fe763d0c1bb23893b12537c276616f2359981be7381687ba79212d9f48
MD5 8e72514f8fbc9cadfc983d57046928b4
BLAKE2b-256 c7c0a44545c2011522a4eff99131eedc751a4ad55544aa055a0c1c922e996f1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2dbb57e5c8fc9eb34745540b80e11b6cbb92c27c41069e9a02c6da143d4e422c
MD5 5054c48aaef0159d04603e5cc95bfa59
BLAKE2b-256 d5a6ec07c010da0137e829604eb6268d2c706c521c9c9aa4b2ea529088d94746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 366608f39e65280be93e4970ae7fb9331618559fd062b544240d1bc96498b831
MD5 500a1727e0980093428b39db3fd26fee
BLAKE2b-256 6c4c6bc1c414d2d0ed7b5c6885a0fde4e93a6d1b9dbfbf3f6c6c34b3cc654d81

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.38-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.38-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef8ceb7b6e72dd4b91f115d4160ccae4eefeb0596aac04167ad80a5ca4ff62cb
MD5 c45ce6733f271688034d9130e3b8ab55
BLAKE2b-256 b7194c217ba88999329f0004de50ff58fae803930a1cc81e222a1e5d8073a2e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.38-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87ca6470b10629a3407f217ec62ce585ba25e50af06057377109fb8fe6a26671
MD5 05a862a026af1786efb6ab08cf34c16b
BLAKE2b-256 3003f71d07d565ce255e5b43b08bf9ddb8a17605934936fc327abc693e1b9dc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b6f200c110cd49c5f17b5b65cc57ff8e5972e684297fcb3e5db5f4cb52a8d649
MD5 bdc50a5b05494df7710bb0c98e1a55aa
BLAKE2b-256 b05188155ad6ad4500bca0d1170b39f767ee406d7ec967b6f2bd1d8c228097a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c137d9bc904de6ceb35f4c03b65216d077736b33d46c0be364d0e436aa62bfb3
MD5 e624ea4e919b6d0f33ae0285b0e53686
BLAKE2b-256 62ccef2782e60c6944ca4f3f110db8f4efb29ff8592c9f8775fbbdaf5bfa1728

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.38-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.38-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 722ee665b9a919916d982d6b5025f5cabba13f7cd0cdc81612fde35bbaa9c87a
MD5 3eb0a48cc294702ccb48345b764d11bd
BLAKE2b-256 243f34b02edd2aaf21353502b66568be6ebae80bad5ea2e43778cf9477f77e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.38-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c61ab934145153166dfc9d1c06f1d182df3fb0e3fdb3365561cc5937b64f0ae1
MD5 667fb8c9d3692a5eaea739f253458a7e
BLAKE2b-256 60139168cebe31875d127afd671bbb0c4b438e68a06043eb688db6182dcb2fe6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cfb85b467e0a3cdca8f85d28715f35909f719bd3468f4bdbf953ba186ff76614
MD5 86bcec069e0d332cefa55f991db7ae6f
BLAKE2b-256 71b42759ae36a3eca648befd0352cda259d99be6516b4220693252cc82242312

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.38-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.38-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1414d0c1fe73ad7fbc056b8643ad5af3a9fc14dde9f1a59cc725b713d72dda37
MD5 d3fbe49d1f291cbc4ac55a2b89ffd9f9
BLAKE2b-256 29a1a7533398856bcb829152004e8d94b53991fe85f0ac5de897af9117b2e76e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.38-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.38-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a661e8281780fca40d3d9e18423cf97904efb5fb352cc984eae7f8c5b281957f
MD5 6c6faa00a2e0ad051a960df2220a1fa9
BLAKE2b-256 b2fa92400dbe0a2275aff0c44a10b3a1983f343a6ce5a60baed7452912cb761a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.38-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9261e68890fbfe920cf4d8f3ed962adaf6520a17e3712f4463f688bd884ae682
MD5 b751e4ed153de3a84eac5a3cc4be8586
BLAKE2b-256 dfdf980c6bf12913ba9e8e68dd6dc7f8986f72af8089ddff97bf706aaaf3f60a

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