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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.965-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.965-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.965-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.965-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.965-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 24ae1ce1f70dc15f154f183c9ae5bd603c84b6974087a7f42618698eeedc15dc
MD5 3a070b09c34bf5a883a6b9df91d090c7
BLAKE2b-256 00a0d35b2432dba65ee589ac0dd029fea3c5d1726ad5af41946b6b1b54c5ad30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.965-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.965-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bc84198e0c92e58e77406a0a01a9cd557bcbedf3dc9b08184d79473129d1eb47
MD5 9ad2b24074156f094ea1aba4fc49394d
BLAKE2b-256 fe75bc974873be99055d769dba3aff1ddbf06fe2251718c2c5653d0350014aed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.965-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.965-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48d927291778be95224bdd90c2c80fe8b9c39c882d12d47be9bcf42ed7995f79
MD5 7765b78e2978f157e6075447872a05cf
BLAKE2b-256 e525cbe6065125e7d4a9266fbfa177821b715489faf11258384e51319f9c947d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9dcb8e009ecb550796e86fa5a538076a070bd63d6bdf9c8da4d0d861671a8b4b
MD5 97d99f5504fc9353eec55e418cbffa10
BLAKE2b-256 54685be193bf9c039d74db8035f860b1ed9dc60475e3333d3bc40f73529510ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 905b78943292b94c7a1bef030d61e3ef175b53a576829cb8b607fc2b19ada638
MD5 8cc2fec5c1cc93270171c12814277d29
BLAKE2b-256 a4d84b2a4651388f4cc3bb626daa6aaaf1501d5ac14eee1ba4bfe02355070e04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.965-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.965-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5d0df1c7ef89806464d8f2fe035aac562dd3240e1ef66e1eb4887b8fa97f742f
MD5 d635b75e17e05d7803ec6a52021ede34
BLAKE2b-256 4c2e9d2e50b0172c766212b49ad6f04cc4468f128014c2f39cd38e63473fa110

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.965-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.965-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8deb868a308c75bbf5047fa1effe8b2bb454a06d3a3c43aefb9655ce0a5741f9
MD5 8b46ce5ac34dcc2d5090b85a0afbc3d4
BLAKE2b-256 4c138cdf2a9dc92c85cef2a7f2227ce9f4639c2b6a87b6867617324bf3341d58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cfb1a888facc8c0e1aabb54be9d4e98b02f2a6ebae971c9c08ab818ae751f2b
MD5 5a8f798eedfafa01b04a34565d356dd0
BLAKE2b-256 a5c58bc7631a04528e6736a3ca55be2287dbe2104875782d85fa7f91a6e7fe91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9052d39c723892393b9b9df162e4b6051fc540d3b81859bc31964da4fc7427c4
MD5 6ecb16f5da6e04b9aedd7037c337a0f3
BLAKE2b-256 55a0a84570c7e8d992ceccae7282383c0dd0be373ba5973f1a26811bd23564b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.965-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.965-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5833105dc7141bccd97d261beff23438a27cdbbb0bb9144429e51910de1fe629
MD5 98d86b0c46a84230b400901571e32547
BLAKE2b-256 fc73490c9175970e67336e4dbf473201766ab2522c32bf6c411dec6caef9a9bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.965-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.965-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e63dcd5aa80c36d69f0c2f3a6ed72cd4a04efe436db70a81da4390a3bcc18d6
MD5 a5e939bc92650a63bf99eed5edabcfbc
BLAKE2b-256 0090252914619dacfe8cdf0774ff92b7ba7a5256b1eda497b9a2e82df96531b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0574f22e459bb59b4c8bcab0f20247e91f55fac8e726a4c3ad1f934daa78a959
MD5 9db39d2c8c715e52985b2d5acedf2110
BLAKE2b-256 e38f7171c259c7a4383cfccccef9856578690878aba0f552429c7f001fde3724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.965-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.965-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 025e52225578b85e796798ea20231c41d1cbaf18a0af1e0c8d7e95380642756d
MD5 7aac16ba17c7f0d454f4d46b434df99e
BLAKE2b-256 36dfc559f389556fd24e65500c8bfabf4b05e33c5b34366f0a912da651d5749e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.965-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.965-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 17b83176b5e44b90fefc88cfbddf38893ef56ff758e5404760b5984d92a2d0c1
MD5 38dfc754184cdef383efc108a92e8efc
BLAKE2b-256 f0e9b3d6b4284cecb79dddb5399fd5f34deb61e3e1837824adf425f6430758a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.965-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.965-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b5dedcf5a5cae627537d1a2197c6258f9e5402ead942b739bd529e94d9fae64
MD5 3a739a6675544fb77ee82a121165ccea
BLAKE2b-256 2259d711062152a8ee1015b367f84c3836cf6c8bdd2d8b8cbffc729f729cc2fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8312d6f2d1ef9e3e27f3d925a9fca2858330faabca14386d910b01ee065f7f8
MD5 3a414ea358ff7c5457e9b4da04492236
BLAKE2b-256 e8253cc866e51601575b17ff979f56608b597b4c7bb85569d5c68211d875265d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.965-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.965-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ca38eed0953c3e3d0ec9a1ef89a718168abdd96869e95ffaa5cc1f517f2e9aba
MD5 e81c5ed5cdc46c4d7c8dedce9f0394a6
BLAKE2b-256 b28f5fb36a9aa8663561b39cfb97c11dc1fd937e7d15718c1913206a45958019

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.965-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.965-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 629d188362c5e22b8876f786a76763115df8d737fc0b45ad09ca8ff614af9438
MD5 5c058597657dc28c2c743af9186237a7
BLAKE2b-256 2c05cc953289d9aaec80107e413ec60a856ddcd50dd00bb0125929edea7cf7e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.965-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.965-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2432aaed6ed4908e63f18d359e34fe54b59cb203a11c6f1a488f89cb5c57c7e1
MD5 bf1af29c645cb114213d21d5fa809039
BLAKE2b-256 d743cf59f1ca6d2193689427d94154433f3ba1278be799e3dbfb5ac8f6b81b47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.965-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d483e4e049af865e159180c57368fdb9f8c5e38a9df0ec0f770edf003f82cef
MD5 8e97efcec70b56e16c9aac2b6e195ee5
BLAKE2b-256 8bc0529e4a014e38f35fe29540d7d5cdcdd2495023557e880546ad62824e67da

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