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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.342-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.342-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.342-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3c4b98f8b923e077354d97bde0906f0c533be954fcef19c879c9e60e1f6f2152
MD5 fdb5f007c2838f546557f852aab7025a
BLAKE2b-256 b3cfbc43bb8c1c4fdc1437caa72ec2c7cabd04d9c34ed727ecb1194fa278369d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.342-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.342-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fb16d886332625aff8b81c586beb66bd0b30721b1f953cd42e1db17cf836aea7
MD5 5adc7c447b1b267b8b9f28a3c816cc63
BLAKE2b-256 98e8dd83092ee9369b7d8e9b0ca9d45e97472d73b3180ac7cc83b8cdeb355c76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.342-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.342-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 734638fde0db61f9e1c845a974f869045452367fcfe7ab2bdf1e594f0830e792
MD5 86bae2be49ea74c9dadf7fc37c98208e
BLAKE2b-256 e8ac060d12768afa73e1ba43155ff0c5441bbc2e16ab0faff9ede5ee1093ee3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4c1b74df78a3436f7190eab0177525f1e2b6851aa330d106109ec5297306af5
MD5 fd2263032fbbb724873b0ea910476c90
BLAKE2b-256 be63b81c7a782bc42fb60b1e6d9bb640597a6cfa53b209c3e2f73af03cabed31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b50c6e15c7e6b143f9eee53b017475e4d84415ee1f929ed44c3416462d7faa79
MD5 bfe2b80d2b6228c3b8684ee87306c8a9
BLAKE2b-256 29bad092825f4cfffe840baa90141160857cb9e96325ad88a2e39fc9ef77994c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.342-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.342-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9f2d2155cc7e2d5c4c9307d9d04e4403373908f63e86761cdec16a26263d6e79
MD5 50f8e15d959dfa70e308df70225c9276
BLAKE2b-256 8e2baf98f09c91abd8d27cb3dd3cf4ccf11b333c127f3669654e0332834599b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.342-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.342-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37b8d575bbb30dc8c9a1ff1a4aa21bb896c198bbc40849b2611b10a32d80da0a
MD5 3cbc270641732fc5816c36dfdee74af1
BLAKE2b-256 de14b8d04240b77cf69d4b73bf66f6081e3d8d6bd39ad4d63cfc6c57a9ab03b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21df0a82b6ec0b4ad230d03fd305148cc02aa7426febf5eb07d9d4b7c2c5cc2d
MD5 466f735ca9dd6c92a24b577ffb8a71b0
BLAKE2b-256 6f6c67902f444a1a03b3917c8634ba7f029f0cfb4d96b05c7b2c60817c390aad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6a63efad62dddfb0c5cf4fdbcb26de16fd1f7532c1c8cd4e3b065acee71154f5
MD5 07021ff00e7305a89dcd3e2b80c4b545
BLAKE2b-256 d2ec2b517150882780c73ba28826bd82778d7b8bdbb1c3a0c9b08e3a4ed0e7a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.342-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.342-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7b1626c8a456b26fa7233dc50ccd291d3c40e11132e0227a922430344b21c362
MD5 d25cb927373b5564e2fda906aea7a35b
BLAKE2b-256 4bf579317852c496d3c639a7f2c3ffaec7a43cc6ab6370dfe86093874381f888

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.342-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.342-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f69bd7a3b0fc30549884fd683399ad44409c9ebe58f2c9cbcbab822fbc66b8a6
MD5 478f170d6fd9ce0a4218b50b50fec3d9
BLAKE2b-256 1f5c92ab686d0dc6b81e77811ac65e5dee7d1049f676863eb75b547ccb10628f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da9ab1217b1637812434b0987762c30ce5ee26a6859cf20a9ddb14860bf03d2b
MD5 0b612931f138365975179ac6ab671ce6
BLAKE2b-256 4f47fe28203bb512a9f2da42c5eba429d0cb78633cf493de345c83c684292436

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.342-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.342-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0c6bb3138a3dc56cbd2c7d1f364496ea83a2fab9d474e8b10eb8134be7c147aa
MD5 af829d7cb0af326dd093ff88f646c767
BLAKE2b-256 3a2dae83349d9e775cd9a6c4c32b4fc1757b94918f8ad9bd7324ccfc80bf36d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.342-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.342-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 78c655071ebdc1dff297e110cb9e219b1cda892a7811df8b80a4f116cd30e85d
MD5 3b22629c6f0a438b4b2e53e35cf2b2e6
BLAKE2b-256 0a5380dea2d1589d9b89cd2397b5c62dcd29f5ed510e7b8f67631edfb20abd3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.342-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.342-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 11e1d2b0e4fc906636afe180989e2777a13a53104eab25c2094e1279151baf4d
MD5 9cce793cf8a1d1723f6d96e3f2e762a6
BLAKE2b-256 a9f530cbef532f0e543f511c8f6ae24c0e15886bfc2591cdd84397a1d808521d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 108e0f3907a191074d45189d2fbe40d289fa0a51f717cade812caf184f9979d7
MD5 5bc5d04c864a8b600e568633aaf85c60
BLAKE2b-256 abb41e931bdb5257fae8ce9f50bf0e91ee0fe0c56daf3928f20e720effd35f1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.342-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.342-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1ad2b53f78fccc364639b10b234d0b6d336b9913675b8950e32a408103e94d8e
MD5 9298bd62fad63fe18840292f3894d414
BLAKE2b-256 fc6882a6191c7db938dabd8e82679f7ebc5e02a64f4612940c1c58e39445d5c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.342-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.342-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 61b4fca150d88db2acdb37372f843a6b80d615599d896d1d28eb9f92459cdf40
MD5 2e98880bb70e4423ed224df2689e6c73
BLAKE2b-256 114107111c22c7c45624c016317dac1de84da0285738bbfaaf7331fd0b7bf5e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.342-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.342-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9336f80852bb37474a82f5b1547030a92d9c019bf8714998dab79eb79d83e41e
MD5 da0e94102a313a60753b523cb09fb8bf
BLAKE2b-256 3498ce408e12129446c0238e0da52c9ef3b2f60d82894bdd0c939a3012e934b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.342-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46375b12433410e5d83dd0c9475837255b81f378c40cb69801f094dd858fe2b3
MD5 b7581f2c71199c5a2837b9489d1307f8
BLAKE2b-256 d3fd6a055f1cab9e3bb6999703ec8eb773c59bca164507ef1eb1adab9aadd2ba

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