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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.476-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.476-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.476-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c577b630699754dd142dc686c8efeb6001dcc92bb70065de3e3d48d5509ac3ea
MD5 4e8124ce85c4e89dc3e4f958db1069f1
BLAKE2b-256 b5b784043e761caae951ab2c75de5d575476c60af3b19cc4d462564c93a9542f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.476-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.476-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 68fae7b1c43e940c9fc71ce6b6e885c3c044593db970d0a298e32c715ee05a50
MD5 e7f6fb776c0c965756ab67c37a397919
BLAKE2b-256 196492f1afe33ab85e17853ceb92d91cf64d44b84e00f81b4d90e170971ebb40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.476-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.476-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4829eb20f67dc05c28290f0e9235eab3275d35588f7f859d0e9240aa85be41de
MD5 6e339a4f05377120d64b3d59432a71a0
BLAKE2b-256 d7efef46be3ccb8a224e3d8dc2cd31db696101b981df08c1bddbcb953095cf2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74758d5efcddacbb986855d6757212d9971e0068433cb43fb72ac62285dfa9fb
MD5 01cd227e006be6e3a708e7508e09054b
BLAKE2b-256 4769a6af3792ceeb020b595d596be57071d3840f784377952c46c6a3ac613e42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b5b535a88568653c83e9661fcf46c53d2c5bec03ffea8f95a7a10c4aa31b35a9
MD5 f8f7f34ab30484f6119c0b95cf434a3c
BLAKE2b-256 2bdea03442ec72ca4b1c92cc7e091f01b4316412471b70e66f9fd0c9e549b86c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.476-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.476-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 405eefe688db1b1213948e4abd17f364d004f4d05c7bf41351dcaae6d915bd2d
MD5 3bb594929de260a23c2824afb119cb3a
BLAKE2b-256 c0ff926f375123958b7d652fa7075709e1477a40f0d92038f1f8eb6fc49718e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.476-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.476-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6a7697c1e9935ab22fec335859ae95137f024b447b29a980e733749b93f16c1
MD5 748f24231f8c4ef33c9b64dac40d1ff6
BLAKE2b-256 6d26daa93a3288ef1df294a1828559ed55130ee9f1ff76ddd58c05970859e561

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b59dbaf322d3c0469c3d1c6fa606256a92269952b22bb194af080fef64314b1
MD5 be5d19ed51c9bc2d1031edb82810c63a
BLAKE2b-256 3916ad3ce4477bae571417860e3ad4ebef17085b830245999a61f8d2754172d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d93c8f73fa7a484fbc7fd32db0ae16ad9e2b79de764a50efb189557e380850f4
MD5 84004e025b75dd7a28fb0b00f3fcc463
BLAKE2b-256 4a9af099de889dcc582526ad91147dd2f9efba3c1d56aa31c64de6f898dc0b66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.476-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.476-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a5b84351f771950d1fcf4c87eae1c16082133e1a03f5193bc03e8fbfa98f1309
MD5 4e33f1bd71863d1ae69c71b6e8b317c6
BLAKE2b-256 0b302bc40c9823e8014ed4dd89b9cddf91f16632af19bc8dd8a4bbd5ba25e7ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.476-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.476-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 044b1c2a706f9ac6c807cff1ab1c50a0c9baee9ea8f0c169d53db9a388f0474b
MD5 836f8177a146b9468a8982b212da0711
BLAKE2b-256 d5e089822a59a3463c2be36d7f6d4293fd9027d2b9bf196c02bae55c472a0f6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61fd6bc1cd0e0eae3a89b207a7e4555f217b5960bc7ee053400406fef93a2632
MD5 b7254cc1a4a96d25ad39a735adb6409a
BLAKE2b-256 e7c13bbb236aa803cbd418c1a59d0337dccbbb909df93a62b02c55c2b3bdcf89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.476-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.476-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f341787db8fec0f2dc25c0fc5104156290bfc08d14decf7a46bc3adaf6bf6d7c
MD5 0e2a6d6f1309b800963002c59c3508a8
BLAKE2b-256 63c5887b61c623d0e7b6aec69b508fbc52065cbe1db8c9a163f5c8f93402d3a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.476-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.476-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ff282975bb26de9712c065149f292ef52ebb1ca897abb629b4a7f54f7d2ca6f3
MD5 7b636c4cb3d30f945e52f8b5e11615d2
BLAKE2b-256 c36da3e1f558c70a69ec39ee50bd38f0c4f3809b242e50a784e6de74d1223da0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.476-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.476-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cde7933f07a8ece1a7486fc10daee77a9681e9d5b585eaabfd423f3bd318928b
MD5 4d0eede01dc799ed2b6be01102c7124c
BLAKE2b-256 e03ff35a74b0ada92b90bf08beee0bf4e8097ca9754a58dc3b079adeae997af3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75dd3e7430e44a4b4b8d6dab56b1231d0316762ebc91c4347043cfa68db7108d
MD5 20a45d2ff36aa5279093885d0e64291f
BLAKE2b-256 9fc338b5a105794263c44394f2b28ecce6c137626a1914d69ada28cd5c7b986f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.476-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.476-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4f3cf1a015e0dc56efdc6cccd0776f1e92ec3f18b655abb3bb4c37415dc502c2
MD5 56bf28c124dbc0fb7556b74f1844e303
BLAKE2b-256 025b17fa8cf706969a5796372691805337d744a0b78de7820e7247352daa2fbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.476-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.476-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9485bef3ea9e663c1a1ce710c0aa4d6df3b782f47ae7b2a5073c6608660708c3
MD5 31d22fefe113ce17eae719fb34f79e36
BLAKE2b-256 fdf5cf64530ea0b5509313c9fde7d6bdcdde30778a3ece957d1e440bab0b5463

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.476-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.476-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4262fbd235f51bc0367ac1cbbc33399e14d31bbe9691eb5b04956147a2ad1988
MD5 a3757fc52fa1119de9fdeed684266919
BLAKE2b-256 c3e06d15ac5fa8ccbe58f3c5053ad72a7563187c5d45820439ad0e488aa7d115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.476-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7168744df9ad9bc459cc0c22ff7b2658b4d5578a1b13ff5da191f7c25829d1f7
MD5 f30d5c4ce0a47f12cab9a49823dc1d29
BLAKE2b-256 c11c68f7c685ddcc87576ffcb4d8235a90ecabca9d038d095d298d0ec24f3475

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