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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.36-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.36-cp312-cp312-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.36-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.36-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.36-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.36-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.36-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.36-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.36-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.36-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.36-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.36-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.36-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.36-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.36-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 698adfac9f93ebae03d2137277ecf0c384f074ce22f4ab858f26f87e895bd752
MD5 f20db4fcf9eae503cceb5fce56f2d02b
BLAKE2b-256 43acaf33c73235555c26d180ceb636b569be29263a4273c2482b4aaabcf28b1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-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.36-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 db7f0f7f6dd6e5ebc5c526e4341ee1f411318e71fb2bff6c045d7fe0a581b132
MD5 1fbf2afbeac266c31b39133020757a92
BLAKE2b-256 b8d4510f6893a2b07af801a838e84ac38e2ea24976a69849937d1c3db9895885

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.36-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.36-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47d7bd4be5b24cc1ba4ec2e6b8ed481d521ec5cf9ab312138fe2425c85ac17cb
MD5 55a98338fcc949ba3faf8e55ae653c4e
BLAKE2b-256 4e85dcd11a136ec08b634b72b387e5e7ae59067dba292fb9ee5a5aa85cb07f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.36-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d69ae1a1290481f054708b7111b0f9c84676bcab44acd5f7338f830b523f3dfe
MD5 166597889db61c4f268f98222187dced
BLAKE2b-256 c2bb8540652b52a15b0fba48b12357c8712cb273b6328fcf740e344471864df6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.36-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f509fbf7aa123fca3c18aa699b87011ecdb11b4f81aa2090debf3ccb65a84d2
MD5 fe7cb74e2e012756679ee5f6ab9ae6fd
BLAKE2b-256 5172ae12619cdac042fc6122babae9f4ad44f054c6ffaa9c2c4ab8a63ef97c9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-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.36-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0855ea2b036cda08a04ac3d54b0c1703b4c2cfaf469dfb16ff8ecfba5aba3586
MD5 66c0dc6cc973ff5958ea72d3140bdbe9
BLAKE2b-256 4386ca35ec7a7995295863ef3a754882ebec80c8af7306dbd4cbc7faf78c500c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.36-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.36-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1ce079e3b9c05841db20e5eddd4599a51d4f9083fe242bc92da2b7759978f1b
MD5 e51bba6a4d81f709f06af0f7a8d749b7
BLAKE2b-256 bbadf6f22c4ca702f1dd6b50ed55be56cb26942a94d0115c16acbf2853eb17f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.36-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8afee129f1037793ed24f0f7d5eed288f250ee88361d06ba0b8a838eca330c5d
MD5 eb09460f02269d5e19aa76b680346e34
BLAKE2b-256 ed5769828d30001dfd20e6bbd8430cf2548d747542dec73e50026a7e62951764

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.36-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b8197aded1e8a7285872f8a938587a46b7f5b495237c922aeab83381807a8676
MD5 2e165f3621b6ac7c9a6a7d16608b259e
BLAKE2b-256 c88f530b20d4796ce9b35cc4966e5cd3e62206e9c1b77753a900f87e3d31be0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-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.36-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4cf1e706a90620ab45e4d73e003b62536035971ce61be76eda780a35c6fd8511
MD5 ffebfd68df8b2b85a29f20eb40de5c0b
BLAKE2b-256 16bb5a9df6ee8dc242eb19dae01827869bb1d95558c6a75316a485d89824f791

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.36-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.36-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbeed1835af6a6ede161073057daac09a5ad4616491fd6c4785db5c61b3ef23e
MD5 75c4687920d8c1e3bd65513caff37eb9
BLAKE2b-256 33fec7cbd284ebc77f23daca5fc5f83b193d8b7b6ffabd8e0dc9d2ab9c243dc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.36-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3af887934860b10f7b3372b8105e2eff723ea23c64b790e4f335f8a7f7c08552
MD5 75ac38a07326f7651af368eabbb2de74
BLAKE2b-256 03909e0de4badc7aa83a25f6f9f9f77cb7c8b96a39507b47bd26a1b49ca73780

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-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.36-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e93a11a3e5405763d21b05b9aef8d226145aad4ecfbaddbd1a558d3ad93d5ad4
MD5 6d29345166bb9c9a59863493fea2fd71
BLAKE2b-256 e75c20ccca9744454792051d19f78b062ef01980b5d54ec5b828ad0bccc934ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-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.36-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5b08484c5726be85c380b2c2cb004d32bc15f0d20d19d170f2e3d35e460645cc
MD5 5acd8e1140b2fc4e8f5c05d53e907a28
BLAKE2b-256 3e26eb97c06b489bd05135dbe44e629f68f19a7cffce975fd44ed011118b4596

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.36-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.36-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5458f936028edf4c68352e3596a2ca3f2d1d483a9bb9962986671dd2a4f422e
MD5 ded1530625157c1751c3c04508dd9638
BLAKE2b-256 c5b2f7cb7f75d43f7fbe0b0320c9cb2f4c5f5b2c18c0f569b29f91bba17de1a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.36-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e853ced0a6e42826091eb553be82448bed1409ab23c09f24ff642f7da09060be
MD5 afff1dd3f685a38e1f641e7fc490adf8
BLAKE2b-256 745cb34eac7af12a22a8c025cba2fa52aa0e913ea53835af17476d0c600bed18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-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.36-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4571ae1aea67902214622bdba1c738e56b42f11d7ce2a4b41e62ba70e52d42e7
MD5 51231bc7c2384c81702c22d933202fe4
BLAKE2b-256 3a896e9b8ff722f597ed9fc3bd7d31955e207da7c9d7d03aab486cbc8b683890

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.36-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.36-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ae804b57deee2e656619d51a53bb61ed354121b82c347865bfdbcefb805942de
MD5 4bd7c328a563123437164244904b6a0f
BLAKE2b-256 daed853505a47b43203e4d2fcee4433efcc54a28dfc4b1194ff68f62ab7bc6da

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.36-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.36-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dae08e224844daf436967f0ef52a06a1cf485b77b7642adf4e1c9c9dbed8d6f1
MD5 2a2e541cb63d715c57fbb39cd40b215d
BLAKE2b-256 3a0e58d771bf86d33d671c3967ad61ef2b47602594f7583b39a9dc2c3f58feed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.36-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfccf15d9bd7d079ff06438677b9f5866bee38d648bdf23ebfeb589e5e37812b
MD5 6ba108036c5488fd5c09c951f5a1d8db
BLAKE2b-256 48268af451821322d760870d940b5706b3320350b1de900fcfec0eee34121c5f

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