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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.29-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.29-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

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

simple_equ-1.2.29-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.29-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.29-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.29-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

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

simple_equ-1.2.29-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.29-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.29-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.29-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

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

simple_equ-1.2.29-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.29-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.29-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.29-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

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

simple_equ-1.2.29-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.29-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.29-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.29-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

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

simple_equ-1.2.29-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 263057cb28856d83af72a3002580b825bae23afabca52ab6b3f0d67e1db992c2
MD5 b39fc5b587b48a84aad1adee8442f9be
BLAKE2b-256 e877f5bed870526ab6d9d6a47811fb52e34d5a7d84fea9bab0e0fb0931fc88ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.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.2.29-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e2938d02ac4e4800c2a3902625576357be32fe3987dadc3d538e2bdea9921f55
MD5 c84d36db5f3b6e5ac64f0174225283af
BLAKE2b-256 b7722119283e23f6ae1034f589ef644c6b6af46136e5003a377c56fed8d65407

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.29-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.2.29-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abb0220ef3ec4312434811d56cb9f63a90d046202db1868bd3916b0e41b3823d
MD5 c08d71c485aefa182b9d488fae395550
BLAKE2b-256 eb32d2ce6eefb0efdf9900ed26565bd47b3db779332b07ad5a31bcdc6f9ddb39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.29-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8eee0af22045c2acd8af5106faa46b8ea3734f57851640a11a6fe4bdb0e3f0c0
MD5 89837abec506976b12cbaf81f4f0a07e
BLAKE2b-256 f70ea08e3b34cd5501a5f10c43b689bb3400082afd29e83d30ac1dd4182ca50c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e151fe53b9bc323aaa8910f3628aaf04e13cdb292528f4a6e0789d30e754fdb1
MD5 45124e2214db2d8cc397251b8e2dcc49
BLAKE2b-256 80ba6c324ad66a064bef91712d7f594b6dff32d7511f4b7838d8967b26ed2394

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.29-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f6c63fabef8a8d7894151765063de8faa64a957472fd52ebdca6dd2656f0dd85
MD5 0a208293f30952afdb47886303bcd4cc
BLAKE2b-256 b07f8a7bb8779ddf4836b5591a25851746a2574d743157dffe01ccbebff2304b

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.29-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.2.29-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2dc977e21b6d40d2cdaed9b75b1ec427b9cd478d88f3efb7b63e678d685b38ba
MD5 34b57e7d8db5a1a0daffffa7642687f9
BLAKE2b-256 7f521060da3daa612d5ff2ba500146f05dcd7f21622c927c9543732e4b703fc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.29-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8277e22e77c07e90ac0821753ecf475edfb16126fab544cfba98d48a8d80e5f
MD5 0572e9e53268a3899299d93e9a527cfe
BLAKE2b-256 78fd472f5e66a591442366873704b6d795b21cd600f548188ce35b1ef269edc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.29-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42a4c2b359585f46a47f97dbc994cc8c96cf5fd5ee4664cff0de6d2daf8a1f0a
MD5 1f88979a5aadd62d1300958c05c2eb08
BLAKE2b-256 5f13b76002c17d0b55c3e2ad2fb3f139e649a39ea74fb3d86cd43a90b293c9be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.29-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1f8f20aa774ba762f596b285dea9c15e133137700a6c28e5c45eb4ec0baeb637
MD5 e516bac85a38dd07c7e8e1d75ff95f49
BLAKE2b-256 46a6f2d47749c8c44c6dda0604571307c5df53491fa7b7b8e4ea5bc112029f4a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.29-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.2.29-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7d698792f9f6b0aeac46e22020e5b2764b9f03856d009b4e11701d2fd086d9f
MD5 2115fc0c088c17063459c8d6037ab598
BLAKE2b-256 a3cce378580a23fb8d076483d034b3a50d990b0c2b0d920796d4d3071f684523

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.29-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6077aeb98c048e71277c21c1c8cb59308e68348bff13b6cd00227453b53c28da
MD5 115526d7e0c0c60008a298b1382e09d3
BLAKE2b-256 a3cbcd5365c911f65fe72243117f03dd665a4e858b81ad75a6d94ee233ca1be6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.29-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ed932b9e1c0e3bf6e63e64ec79d58dc026b6fd3c55c982148656835f33981d5f
MD5 34790b856cf2aa9e3e7b1af090bc3bfb
BLAKE2b-256 c096672956d169ff82947ffecd1adbdac22581c0fd5d33cf92768cfe8a463d81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.29-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ebe08385d3f0777225dcfddc9ac4679e6ec5b259487d88527646797cfd6be45c
MD5 5df520588cff05c046cd794804a97b98
BLAKE2b-256 2f2e48c736b16e04fd32ff2c5f1ec5020b9013da028219c2c5eb772bdbd6d005

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.29-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.2.29-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 281e8d7e2e097db15a7dc68cc9a24546ee7a6059a6c17a5b39cd5d3f97226835
MD5 8b975dcc71f3c4ab303764d5084c39e1
BLAKE2b-256 0476655a099dca3e4f7b0e4e4027e0e68dd8a7af396c10f7e59fe311216c6f12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.29-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 610fbded6d7353f8ae61e128240330dd7c3ad996dd3299055a48858756c0d7ac
MD5 a1bc1a7c8bb130a338a0c74850da18cc
BLAKE2b-256 d23551a58ad9fbfe3b124c5845f29c96811e0a8303acdccc0c5c16f9dd7cc7f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.29-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 40ff2c8346ede806723ac470a5c49ed04b9ab001396b00ad3e6b1ac5052d4a63
MD5 efcdfe46f721ae6fd2abeaf209600f18
BLAKE2b-256 ffb9fc96505b922fd17c432769ebe00102403711bc2d4997b5a1e22c70a226f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.29-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.29-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dc07fcf3d9b58170b923ee958284d7c1b0ca89519e9dc92d6b8fe6068d51f840
MD5 c9d28eb9577859a0042a27c9e15503c2
BLAKE2b-256 ad4c6cb97ed337cc1eb2a6724bafcc37544f806dfbb4341df2ef574ca805e0be

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.29-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.2.29-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bdd54bb51e9c2b166e1c787c41bfaa1486c208a52177cda16ccc577d74f2374e
MD5 5f290fa8b88136bf637b39e4c90cf6c1
BLAKE2b-256 a30344b5609a44294f8bfcf1b0b7869097d4ce8ee4aa94c1a2e2d6c971fbc04a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.29-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61e51baabdef380c317c49e7ea3c6e935360d87c7bed90a186743588afbf6d47
MD5 2e9922029111a04a2dd3a412d9965791
BLAKE2b-256 491a4dd80dfde8546a6aa186b71b31dceb76f9250eb6ff50b5013128480a5339

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