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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.472-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.472-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.472-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 279c26df4220a577fdddf58718d701dcac53c0ac883b95894a7f4da1090732e1
MD5 a0c01fdb6ea786502650e8b141a081e9
BLAKE2b-256 6816162d762b7ebfc85120db0ffe297ef44d80e0d1f1e912fce68e29bc3e778a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.472-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.472-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f7832ddcd74a4c41ecb33976e778c8b840ba0cea2c1b5f1dabdf8849412aac36
MD5 22d06b2e5153ef45932e3630a295ff85
BLAKE2b-256 946748f097b7b4c76f0ce4b9ffd2bc713c2093f089e573ec94c394be7275812f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.472-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.472-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 86b6e65d96d1cbf32964947a20798d1bbefa09b743cf1cf6f2cee1cd2b55aa18
MD5 a0df94c91f1b3129a79c42a62efa2b14
BLAKE2b-256 8ca96e780fcc907eb81a5c3813b1c2dcf7f32ee344f6a847fd8d9737a59348e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36cbffb123c487e79b4e8dc2cd602dad8fa31bebb26b7d05c552c1baf0b3c4bc
MD5 d40b80c294bc06a7206416d1262bab1c
BLAKE2b-256 e6cb9aa05f3c6b55f45b1c5f988bebf86d9944559003d5a1e763bf839eafe2f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42f4f1244d0241d0fab40e0f3737710997f34da111461bd226bf7bfa8089eb24
MD5 81169f45cff0ba00c4b4d871f697083c
BLAKE2b-256 880cec8381097c0e97651fe1df15d5dcba2ec4c4e95db99bbac89c61a8d033dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.472-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.472-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4e63791aa421d62586f601be072fe80c03b627f0d1c5de02213a73c880c1dcf3
MD5 ac67b9163218971963896111b6efe06b
BLAKE2b-256 e417c7ac49c4f00bf92e037ac1f86198b985eadfaebf251343a95b02874239e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.472-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.472-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5188da191b9e9cb005832b86ec3bb9b89f57beedb20a9b255f108d47c634504
MD5 d632d29d038d1ef0affec3673b108142
BLAKE2b-256 b5985f1e4b8904f0ab6e98c292b288dd10f659961e5f952cb880149403436905

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38db71e82082eaf4f720442e6f754f5679e61947b427518eb1d706c42285e708
MD5 ed603b540ab444a065f23070748cb5dd
BLAKE2b-256 175a3401b6edde0bce824a83174110d05012e2311e8a18b675c8ca81facacae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 776ca562cd4a6316cb7d65634d9175d2660cc87690911881e5664d919183447d
MD5 29e44069b92453ba4ae737a474eaf383
BLAKE2b-256 6e0dd2e3d5bec477684db6caf2a0b0e54f0b83c2a7ae5823fc2e5fcf83e66ef4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.472-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.472-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cb3d368525374171afeec62af6caf899ba8c22f1ce078e4b88d45bccfd1f995e
MD5 3d84bdac0bd3e5047615386b6ad6f96f
BLAKE2b-256 32062c75fd2102897c4a4d777144c5c3b46de6c3087fdd67eed76a4cd1af55d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.472-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.472-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f620e218c3e9d311b13faaac01cf7f14737b6a3ee1de71953d0f24e2359a8957
MD5 a9e0839d03c500df058ec68b835f0973
BLAKE2b-256 551e7c30c5e5a8a5f9d4aed699c91ef3c4b4d77ba6cda74fc800bb93db8f88bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03b582f6290490e39b81076e2dde8aa1d9e6c0959712ee31a52c33a5b853aed7
MD5 739d36ca2dc3557f6740881f76da14f2
BLAKE2b-256 ce7a5d18964ea59be034bfa98d04a7caf6b0141af508d85e67e5519631abee6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.472-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.472-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 34696e6ee97c3a0810d4a7afc16bc37863205df17df8a4a691483052ead0319f
MD5 f46e35e628785c3cf862ff8cbc86ead5
BLAKE2b-256 d236dc325339c4f5358f98e81f82966ec63445008533fff53f2f51e55a479eeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.472-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.472-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 965e5418c251f293a013b817eaf5ed764ea4b30eb6889e7e6572486ea5efb4ca
MD5 b010f72cfebe98f0909eb889f48137f4
BLAKE2b-256 b9dcbc546b2eb435113d65ea74ab4d8b46d260563744d40775d896b9cc3fd923

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.472-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.472-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a293b8a256110d4d5332f7ee0b30c5ac5037a9e8905b8e3f546282eda9ec613a
MD5 d0a7cbc95455bd680584c2546f59b4c7
BLAKE2b-256 825e1638b059f9fecf69bd5deb228fd642eb7c320c0460d4970c2cce1c18671a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ff11d266b72c5979fe42e1d7bfa185ba3921617f6fcc7b023924b55edbf972c
MD5 ccb7b07c4a03316ef27f14e21283a25b
BLAKE2b-256 4899b1555c47f5c88f5a43573ed10b8721d1f0f2da6cb44857b2011c7ab06837

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.472-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.472-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f76f0cfe78cf07a315726ad19440cad528b67a29e03c3f5d1c2397ede4630b37
MD5 4f8c1f178aa52c128469dadb05aad681
BLAKE2b-256 ac230c5f3b8f51db34b91c7e7e1e34b6b6cff063db4bc55a4324aa423892608b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.472-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.472-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 80ce8281342ded7d060a3e37ce4af9e3378d936c0af34335736c9eb4e9122a0d
MD5 7a911d2053b3a25cc7350b9cb5a0a064
BLAKE2b-256 9c1796e5c734ccf20652670c072e9bcbd45c8cf810043081528abb823528e375

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.472-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.472-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 98c3565c8862d05c105b191c57f7cb35734bb4e8abe9a8c9f6dcfd7ff3f73509
MD5 80c2fe1fa7de85ab2dee2cc4adc47082
BLAKE2b-256 587bf1eb0b9e3a87e9a6784fc474d4717ed4eeba9fa78550ab2d92597f680732

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.472-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09056685fea3f351b44e7288a80104e5a01cb92c5620e613fee2c593d183b50b
MD5 add6ac8b61bee13f9ea269e327d03e5e
BLAKE2b-256 c7830397f0bdd6b1caab679e021d2fc95fa784d5bd6679fbde54be860f5f3ca3

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