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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.7-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.7-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.7-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.7-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.7-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.7-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.7-cp310-cp310-win_amd64.whl (117.8 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.7-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.7-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.7-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.7-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.7-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.7-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.7-cp39-cp39-macosx_11_0_arm64.whl (120.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.7-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.7-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.7-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.7-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.7-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.4.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c5b3c1210fa9bf311a4e7fdd3772a23210a84515f6694956043596d676550193
MD5 a5ca496d78e514ed764b97e1043c83a6
BLAKE2b-256 40a54b198cdfd4b069fce0f4b885c6c1d73513ee2f03db4f34d05c3bf378c786

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.7-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5bc55fe23806f97335c1adef6a0e5ce2c36cf7b2ca4e0b9e02fe4b8a1c53dc91
MD5 d383d8211cadceb9973efb95d7bca1c1
BLAKE2b-256 517c620338a0d27908b582a43d54a9da877300eca6108ed9357cdd38421608e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.7-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.4.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12d5d5fd293adcfeed6e3ec0ab8ff48ede6288705b5919641b3df535deaceb26
MD5 bfb8fc72042f7e82567552491e5772b8
BLAKE2b-256 201eea23b6c1e997620efe5498b940234d480ee32446b5c041305ba65f449deb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb3cb530cdb04429f983342bd412ee1cd4654f811b07c8ee39e7d4147d158675
MD5 6782a036309aa7781bf73cd39eb5941b
BLAKE2b-256 cd80d6ee6ff27a3c10a32567234c1c71eb4f24da39ae9394c4079b9522ac9256

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b5d15df59d60aaaafe624e7597d2558d64737003da05927110d7abf23eaa9e9
MD5 ba0762b89fdc6d6413dc724040e02d27
BLAKE2b-256 dd34d7eddeab37e18b8b3c7c62acde84cd8f16ccfa7be2c4014b88cbc5b3bd90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6d4ff0685bdb6a76105b9f0dc2b721c9de19b41ab01c1aeec86fa8c4e1670448
MD5 68f76cfc33e72ab4a2180c9b5c903942
BLAKE2b-256 d4fa0e03794daa94e24598c1ad41dc6e260dbf6e8637f1334ce21bfee9c2a9eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.7-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.4.7-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e149c2706eb6f97cf5ee08394a6368699238bbc8cd4b6d2d4dd6949978961057
MD5 86d4c30b6252c7c27e51367dfc55dc19
BLAKE2b-256 8b8d60cadbe38db4e1a24f40bf75942754a3ea240711bce0f5195654fa5d8de0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58895547ade230c6da74b7e7e05805cb6471b6a7d2469ea0e255328c7cd16690
MD5 49ba703fefa3eca2cd14f715a4af7e3f
BLAKE2b-256 848fed510895bc5cc140d04e6db7ccf0a6277572f0d0fb7fb2fe0060dc58252d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.8 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.4.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ffda758d982fe05218df839b0bcbc9b6810e37e4fbe0e2a86d424dd1ebbb9be1
MD5 ceac827b4cd8e0797971747cabaea92c
BLAKE2b-256 5d1dde454f5f86f2af1f361a60a46576ff4223ee8f1a9c4d3373e25bfbb5c105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.7-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ae6ee541a27b07af0a8379ffe7b7295b7a4da82094bebc140123b8de866c7a30
MD5 ed384efd2d386cfa222edd2c77770a67
BLAKE2b-256 f76afbc7a9f98ec989a309b6af0fc551ab7ec8a6bf6de810b8baa8cc88529576

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.7-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.4.7-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95d62d5d61462588533ebbfbefd5b86bd9354b58498fb0f1c45360463ee42a3d
MD5 723c2bcaa2ca810995072ed858787ad5
BLAKE2b-256 d4e2cba37441be720705cb3dd04fbd4466ac263c8540f13c3d3832b1fba66b01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80b8a99b6f913aa2f471195b60324981e33f0db24547f39e9f6d9de3cb00daf0
MD5 8ee3a956eeff9269284b0ac72410da94
BLAKE2b-256 900cf1ecf85d8b605754c5b43957ad605c0ed45a36d867fcb051b7f5c29fd509

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fa986b09e18322e84606201fc1c24582c50811740ba548dd15adca1a3d291f5c
MD5 9304081f03977087ada44a598800f075
BLAKE2b-256 f65728e902651a35314f471785ab92fb437c3ae90423735f2ff288524bcf15b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.7-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4c299d365bb23399d98564b6e7551f05e730843033b3e2250601293b1b54ef6b
MD5 f3a9b5778f84d1aec9acf9172d667e08
BLAKE2b-256 5bce320d254d0577e36ab342773b1f0048893607eaa43a400d2bd9a75c372c09

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.7-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.4.7-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9d61756c590118308f9e4671f16f1a8f43b1a7916dd98c573b766ada5c64fe9f
MD5 90133fb9ae12d68ba14eed2cc051c050
BLAKE2b-256 da53248a5502a1e978625db54784a0e9ac79a96c70556039810e68c6f0beb4a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb187fd50c76f1aa7b917cf60a0fa2cdd2cec05800d99885cebfc8fac683ccae
MD5 ed1f1cdf24b30b1e7be0187f21825795
BLAKE2b-256 af8822ed970a0cf7d35e87c65e909f8681a1647fa009035e9a259ff74618298b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 21b6b8c9b7e0a0c98fdf07534ab582a49aaee6b59a2e64ac45f80ba1f5797851
MD5 d8a92d1ab1c2350b591028618a63d290
BLAKE2b-256 881b5195af09e864a0bda6931a3fb9ada7b1182ead792bbee886cbaa4af5445b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.7-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.7-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ad4e8a255eaab5960175e64b6dfd86b42ca855feabbda18d040964731b8d2359
MD5 898d3e2d3a92413cf701c9b82079675a
BLAKE2b-256 ec87560611ac0fac0b6d04139e58081e2e757d801a8d3f2b6503793ff74a67d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.7-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.4.7-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dda592cec5dc72e4d72bdfe8849f2ad82b74dcf54f70b9a813f65e8591483080
MD5 37e5c09c5d4e2e14896f2341cbb236bd
BLAKE2b-256 7d6b1f92efb3942d4981e4b7c57cd33cd9897a949970bcdea2426f1e952fefe5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4dac796f9f4778aeb955ddef512aeb5390fd74177705eac4ccb5aa319199b364
MD5 8f378f9e01c3b8b7e54fdb7b21b6a512
BLAKE2b-256 697abd19035ecff961a7ea1b89b202632545744fd4d59829065789e866c19e31

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