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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.968-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.968-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.968-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 60f4b8b118ac8196c942a4609ba2d346e75506276268ee5d0b3d93e8dace8f78
MD5 bfc46d9b3d73c294ae5122b33e3dd4ae
BLAKE2b-256 c87fa4e3106d854edf4a136143b1c9dd9002e5174e1279809780ae6a7109cf56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.968-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.968-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2ee711ba801b1e41d667f6a82a9b23f392890a36de7dfa83fed8ab9dacf49ff1
MD5 9a211c733cf4eefaf79cdd3484ca0502
BLAKE2b-256 5c6be062bb8c8725484f4228697a9d2524fae01a8f99e7e7e63a54bea2efae1a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.968-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.968-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3e3ccdf90caf2bf57d7e18549cf158b7f2ab5226730d4a9f467291e4edd1828
MD5 418f16531e81088ba57a95bfb9a8298c
BLAKE2b-256 f8e1c400eb7e950bc45fafbc308242633ccb8167880272cf1b53c91e2a322535

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25fff9f1e3f3245f625a6e73806d6c5ef82162c3b5fbbd443da603c24a0f90d6
MD5 ec154172e4b8a8bd25a097c7cc84efa5
BLAKE2b-256 831b3fb7becf88166d9bd431d9c326293858af63bf4a4d40aad45c68194a54b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 912cc1b162378edbb4f40779057bbb836684cde84f79c0e7e1c3bc2b1c104232
MD5 ee0b72e96afc996f2c5a7a29564f48d1
BLAKE2b-256 5060517a76dc565fc50f5e7c85694d715f4ec16dc746976606a564667d39f569

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.968-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.968-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e088c166be71b1c6aca114c15d2f70ea36ed903da74f1f9dcf0c275807001b69
MD5 229a81eca0349969eca3dee66398dbf6
BLAKE2b-256 c9da50af08df2a9d3c44a171a66be7e1a0a69011a8618bdd628f71559d544a27

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.968-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.968-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a0a750915390f30d4a37b63761e4e3ff53ae6479c4b8c8038179cbaec035d55
MD5 44392fb0347b9d2753d41e34a7bdfb8d
BLAKE2b-256 e905aaed704802a61520b08f785643c2d7d2617755ca13627865b21c2df42557

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81b3ab49a47aa6e279da3c2b8aabe80d076d8cb7e9655736744d28dd8457b93f
MD5 3ac2a5e56f71addedfe4895a7ed26be5
BLAKE2b-256 181b20fe2bf8e3e488c97c9ea2a6f825631211e97b3c63c80591ad049a21add7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c74330d62654cc0e412ee811b931e8e5e6e29e453d886030a3ad7053c7f91686
MD5 ffeb4ec4845017d574b6005a95e8824b
BLAKE2b-256 4f2ecdd1fb2959a7e8a2747808267bd10bee98f5894be292324bc318e030f1ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.968-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.968-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 74bcd9708636914571f736d32d67849f668c5dabcd5bd36bf7c5a13c3defdf2e
MD5 8deb6a231143f532c880ac486d825b1e
BLAKE2b-256 7ae82e64dc44917229f5661e2fccae48365c8f06ab1a8713954c410bafbcd962

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.968-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.968-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2c14666854509d6f3e7bc341cc96f58c55ec999ee9693e9bd152f2895efa9b6
MD5 e3d3ee2ed07ba20acae82d65768b5ec9
BLAKE2b-256 8b016c64993cb94835cd57ad401001a9b1a94d9426acbb959bfa4ee22617aca2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a56d6021e072950e12bbf52f4613a664d9ec716573daacbd8e651e6a14fc041
MD5 126fe218b3a641e8404d5df98774a5c8
BLAKE2b-256 8208c115ed52125ffbc9a9eef6b22f832d1f068abbe77e917c0c028e2dc25ba1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.968-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.968-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9fcbb677c459347711cc52d88b951f6eefd72db528144151c3e1f2c4d449d24b
MD5 e29d480eedf44179384906a2a7c68d31
BLAKE2b-256 4cc5f3c7567c00f7e202de4d3948f556800bd135cfdbeba98e5110fe25603279

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.968-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.968-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 137c1029de8a779165f7124105262ce97a13706bf34b3ef5eba50442776a9cb8
MD5 93e7e6268a07bc815beb9572be3c4c85
BLAKE2b-256 e293c8791546d444846d19ccfc499911a5c45cb30139c1349154e7ab3a8b8a12

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.968-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.968-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac2ca45d35ceebf4bdccf081dd6e4ad950821bacabb89029390625ba8ba81a33
MD5 38520fcc46c3588895623277f3ace917
BLAKE2b-256 d1ec27efd1ec141f43125f63d4eaa3663bb3c4099d2c35d1967004a5a5f9c595

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba4480c8f9edfe5b9cffeb19f04794c7576d4ce38c8f0b88f6832a9eb18c13de
MD5 885b3f4f186538effdc81066153f32e9
BLAKE2b-256 ed4d633e27e17b5dad45e26d5bf2fecd9c129709911c55fbc0f4a046dd483b51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.968-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.968-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9742b727307d29b2f085c8119ade3f46125cf590bcf94efbd617e9ec43473fb4
MD5 5c04e2cf051b0f61041cb4aed0d9e0db
BLAKE2b-256 e82c60abf800cb3ccba8d181b4d1561fc96f002d61368af65f8fdc35a0ec4ae8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.968-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.968-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b5fa403ba117a9fa8dc6270920fdea290830bb9ca20d4c4c237881e9798211ad
MD5 424825c19464697ecb167359607c7836
BLAKE2b-256 99d6b96b2f54376411a3987e9fbf43aee9a326883c25d0f34730efc986b57989

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.968-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.968-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5bb64f6bd9d62bd7432399ae28a399e70de04a5b8ea57a6341ff3156786415dd
MD5 3fc3c208a7f17fb3e33cdd239950b7d5
BLAKE2b-256 caf726e91f9e81299a1cf21c84d35823cb42e31c321e2ebb19f9a80f5755bc1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.968-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef7e73abfb903aca7f43c4ac1979d2883f0a74d43e056914ee42b5435608cf06
MD5 8a255952a5ed2992dd012278fc0da462
BLAKE2b-256 3db8cb099a397a8e2fc812d38da5ae48b851296748b341e377a9ae516cb7a0b6

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