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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.810-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.810-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.810-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 157aa72c29239e0cbc44184bcbd146d14c38dd1449a988605fd196b672293d84
MD5 daef53f2d5081ab8f4976b2965dfdb8a
BLAKE2b-256 44b66fdfbefb4aaf26e314ed84364d4f4a69964aa28d719d4aee8d82de45584c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.810-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.810-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 533ef3a633267c66f5424757e70ba96260fa81b6559bfe80eba52953554470b9
MD5 017f4976d8165655f0c4f4aad925c3fe
BLAKE2b-256 cc16ecb95572f48d973f77181d8a79e99405f7616b72dd1666804322ea6fa3f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.810-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.810-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88734574491b0664c167aff7e402f96d9c555ddd93c08c465347c6802e1334f0
MD5 cd590a2741ac8ca5900059f49f5fe44d
BLAKE2b-256 8fe9489038e9945c877642b43ac5f2f8f570171220c1bd4141bd8b15ddca10cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 859bad825f75d2a0bae96c4f1b8712c5a67c71b06e2546c1ee1a9b08fdc14226
MD5 0e74847107aeb2dc2205777bc452319d
BLAKE2b-256 cc82af3482784e543ad86bddfba75f3fc63d7da38939f8f5ccc97696f2a20d16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8bec4cb52a4d3d7a3ac26f8d7bce170e9d978de6facaa3cd5f6192c5bf26372f
MD5 5c28bf91bcee4196fa55bcd806abfd43
BLAKE2b-256 f8f0cc8e530c1ddde9fa7a4e7dc3ad19c81bc1fe8f99bf212f852e1cef0d166e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.810-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.810-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2a5bc789865c0d80cff35d26f84f0c0b1b675a6dc557d9f647cf5b6d500561ec
MD5 0a0de1e91bf4e33a80b5008c9c8efa9b
BLAKE2b-256 1c2b8e5706828b874e2d19fa709647179d40c180631adca4acff7b4a5b6f8fe7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.810-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.810-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d70ecea524e2bda9018275213ba3fe27c859a6707753dd0dea93be7e2af2728
MD5 7a1dc448da971d6ee67e2410be0266c8
BLAKE2b-256 022edde633c90be4857947a297e03326fd1b63c1a20a54473d1f5e022bdec76a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12fb35ca6532ac8cc6f760bf0e8ef95ea24a07bd7d56885b4001ce4ec2caf6d7
MD5 a595eeaf4b26656dabc59de21efc4483
BLAKE2b-256 8d28cb9f5d48fa773969ab9041759b51f70d8fda8dd8e6b9090b1e395a7595f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d2a441e3a084a472474a829f5a3268ac36830f97cc43c0ad245e4a651de6d35
MD5 13188d8e4aec76c1c68fa76dd65417cb
BLAKE2b-256 d8b09c889f4f24bb444e42c537a02613e8eeaa887af7db6b13d1744a20edcc5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.810-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.810-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 750a68bd3cd4b424ef33505fb22a2885dce9f6108750e2376d9fb4b456d72b67
MD5 8d26ddc3db3949229b2fa60ce8ce1fab
BLAKE2b-256 580e5ea7114f9e8212cfaed7f68268bfb2b71fff2144ece91fe70a9567844591

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.810-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.810-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9dacdabf95046645c7683e12391e48307120964f2a76df6ad089c6adde8e34ea
MD5 601a097cecc57749614d59f28cd13752
BLAKE2b-256 b7d971788fb698aa8a0f8519c05856fec82ba1282aadd6c1a428f411c23c18eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54707f078c8fb2de01b92e259c2d63a0396ae00fe428cc5c81ca5d109d73f976
MD5 e2203be8f8c44c5c1aa89636b11319c9
BLAKE2b-256 7532730c2da62dba19849028cea8252c582da08b3a8ec80984b4b4ec99679e10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.810-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.810-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9f9f0691c27b86985755e89ba7dd52eb34c59546da0a0bd8fdc744cfa9764f5a
MD5 f9c0dbe7b36c3cd47097765bd5e0350f
BLAKE2b-256 c5d823257e5e5879a4a0900cb1cb6cc5113a00b09edaa1299467d1aad9d95a6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.810-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.810-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f5240ae18331e3dd759e0589a01fb78127bbda0cf8de99d70652fe4814342592
MD5 dfc9647c66f183b99b02a42171c79c7c
BLAKE2b-256 61b9d0cec67d32431f0d8a78d11067bba5e2dbb85e2bad9e4514e6d1ee5213eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.810-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.810-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8752fb55af382a512588eca5a9cd664d62993d76e161c3f58e9967757c29555f
MD5 e460856aa594d54f84f7ca2d2b7588eb
BLAKE2b-256 80dc0b39d10e0c622f28783da69d7b47f33ad456fdcb7134d3954cc1ee448ac1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 924af2eafdd1a685161e27c619254ff7ba015f012965f161f4e1937f89bf85ca
MD5 7d5f6131bfd3e9e66deb46be9cae7c72
BLAKE2b-256 af87ae793fff1c339e991fc7dedcc000225e760054dda1113211dee448347035

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.810-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.810-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 63372e785109f4c8669644846ecf4686c05beb91454a8d37c8aef6c9c8eedca3
MD5 adcb1c8a2ac73bcc123660ddec0c2c6e
BLAKE2b-256 3b33689c804430e506ca9dd1a973375152b946fd4b15d87dbbe320ad48e5120a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.810-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.810-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f08be0d7f095fae68c6764b240e1bf3ea413dd38376c6dc778ff7570a9d5c339
MD5 9060d87248f439f93aa810979565a5be
BLAKE2b-256 7f0da1befb94e7ddc5a89997a8e79f3f5813f563745687f2cdc6d5d7f1151a00

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.810-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.810-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16acc21f4455aca6d9195e0615cb964a3d3ee714e626da1ac242938eb0a5069e
MD5 4e8bdc7e4e0828da4bbe39b5d511fb6d
BLAKE2b-256 ee7a4573be9c89701d56cc68a9257ac5e71544a7a76f4a5a76e23a49f82f8bd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.810-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0663ec066fd02c7c530076ce95d01a59b0e3a9b9f2ae322a967cbc64814445c8
MD5 00bff1619a3db900fa17d9e9d05b2a78
BLAKE2b-256 987861ef4a366b5a7b47297bb03525366502fe52c214789c10a303afee1d5096

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