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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.605-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.605-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.605-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 84c405dbf505457c289044c5d0bf8d2336339877ae7350bf2dfa395260339eab
MD5 668971bb235da7f7fe988d55e18cdff7
BLAKE2b-256 3ee01b53b2940d4d3541f9f23d00eca627c6fbcfc8818efc6be9a0c9c53cc6ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.605-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.605-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7f2e31375f28a29e5ce2b80518f96b48f9659aca013c16632ac649958888b583
MD5 cdcb3f878fc6b79dcd73a055fc0ab968
BLAKE2b-256 e04361856bae4452d774f7382f089afe8f775f63d8495f48cffca3f198e9628a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.605-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.605-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 237b6a84390fd4d19efb60ac8233f02f20348729a08abbcb451ae10ff2b9e9a0
MD5 653300061063111ac74d0b1502ae7f47
BLAKE2b-256 7520634d131d62bc4871c318a1465305c54b044da7f5145b1bd9eb61e38b0439

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ee3acd451c2f5747706431f7158f0a96bfef1e0e2b71d6941bcc3c3b82bab94
MD5 7eea2b272cbd80482005fbf3404ff1d2
BLAKE2b-256 525576a921eac2f9d38c3a4be167f3214f35865465c7710d21c1a6fa8467761b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5ae3e458b92a1f17e68a677f7601de9807014b2996d3590a439fb0a67552b4c1
MD5 421ca6d6dc95197038cdc5a5cc7a172d
BLAKE2b-256 db5c0e91a97b339fa43aaaad0518b24dfe5615d68101f95e767d7a3e60a544e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.605-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.605-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c592c61f5c21fe9d154af36491ed47449025f818f133f49663d4b5c11b350dde
MD5 ca9420ec752691738ef397f93f8f8a0b
BLAKE2b-256 f2760dc5a87449b7d960a943928b3377265c269deeca93eb5a456332d858c493

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.605-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.605-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 86844eb60b7dd119fdb28117610b203998469f56e070278bdbd5c5bbc3e642e1
MD5 44b02d3e92dc5dd0bf72c41d38caea31
BLAKE2b-256 6faffaadb738d32b3a706a4e49bea52ed76fc1db02f419826b48295c9e1cf0d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 057bf87c6c2bea4ee1ba0de378cb147d604ef6ff3224eeca034b9fdd2c0dcba7
MD5 2156f5f443654a3937173e4392513078
BLAKE2b-256 00f672ee35307b6231d037e6e1cf1839f90f4d28625d78418bd1d601430ee8b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 075322bf88f9c0c4c26e5659256386a18482a8a84ecf906dc85f0681dd3e1778
MD5 45b7d60804ebc9d5cf6dd3af9c31dc64
BLAKE2b-256 532d6590a048f028cce5025ce42fc940776e46a1612aa6a3add694d71d90438d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.605-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.605-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 34fee708d043ed73cf71cf1c8c9078f4e4d857e317d654d8cd2d3de57f974e70
MD5 d04f9ce4a95f1bb2ec2939ef8ecf6a3d
BLAKE2b-256 cbe50bf3da383fe40bcf7c5b26dddfaeedb202ae5d5db527b14bb73acf8b73b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.605-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.605-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8a8b716a1e90ae7cf22eeedff682bb3efdb372f90067d666b938b0e22f3be0d
MD5 797bb4713902d6508ee29d0835ce1def
BLAKE2b-256 ec17c6320c82b42780231d78f435bb1b828da6b788e2a92f8a9baa73b98298c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 981b5d7d8d7e72484d5bc9f96a844bcc8633dc7c7f684552f4779ffa72c1d9f1
MD5 26a39ce6020a70bde9805e3caa77baf8
BLAKE2b-256 4573c5829dcbf44b6b3e0552c144e6baea9228abaa5897f9ca0b1aa3fb25a2d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.605-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.605-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0bc527a80b9d234dac6bddfc5b460ce792abc49fd0a30fe84e319212bfe6243e
MD5 e7fca607d0dd03ad6a59acf5779288cf
BLAKE2b-256 5e3265521b4e4d2701c1875f73e800d650bbee5d4bf08f12aee82bacd5241cb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.605-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.605-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8a01d7a06edfa04b4d41555d6c8866843c0c30ba5c3eaa0346b98259f259e706
MD5 bb1d099f8b49d045af5342a1235c771e
BLAKE2b-256 5c6942558252d30ac30700f67dcbaeee9cdbe96648a0a6ebe0d2156873295e9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.605-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.605-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b621828e17f47ed7de38f63a2d952be46ad5e1fa1eae78079d56f1a1a33abe80
MD5 43ed93bdcebfa2f87899a5dcdaceb3e1
BLAKE2b-256 9f01716243f6152a06c9ae694d6101a301b8adfe011826a60b7ef146146de2ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a77b9423aacc8ab080cd9c7e3eb6168b88b817510d1ff1ff75fd6ce2b11db4ee
MD5 8383f185650a1a576d641474f5978ba1
BLAKE2b-256 0d08d0a1bf2eaa4507f85bd8df496820a6ec3720d538a3f29d813cd33590a75c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.605-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.605-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2af62b4967802d1d4a39d178436306c6aaf2cb44979e1ddca55fa51fe5d2f4f9
MD5 fec7a2f1070db5034da7aa157d10b39d
BLAKE2b-256 b6f6e5e40c877ab7b6791e5af81e8434f93e8b5baf83c7400e530c44a3a156d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.605-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.605-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 85a5341feb37a6cd24cad65e59b428d8446f7d26cc1981282c31ff92a265cccc
MD5 7d5dedc96cb5b40ac0af2cf84c0de765
BLAKE2b-256 24c33b0539a4cb87ed7e018ef81671085119033700a41cb42baae2b196f4a3f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.605-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.605-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1be431d89e6a1f25805dbc00c03ffc6796781c23c2cd2f5e2f59ee28304563f9
MD5 4945c08375b24613845738f1a21e43f8
BLAKE2b-256 1b356b07a70473c37cc6aae12f55bb587c0dbab4658a2909287623d5bb400c18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.605-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4ad5f636b22c05dd7d16327798923a56642e72512a5de66676ec01bb21bd58c
MD5 a346f1c41ef2a35204b05ebec8f8fd44
BLAKE2b-256 151bfa474436c22c1c00d72a510d31f1875620d157809007027e1accc64663b6

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