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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.170-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.170-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.170-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9452de637b0cd64c42cb6cbbbc22ee531de854833abee83b47f884c7f47fe92f
MD5 daae7d9e673c1bdeec0d9a4ad6ae4dfe
BLAKE2b-256 7a991d9dc81d064ac0210f016ad99b2ccacf5fdf0619cea1206f72831de62355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.170-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.170-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bb8d6c75a263f760764aade26ef8c59ecf92b3babf03cde5c4b9ebb34856e183
MD5 66071090b94c77687c72c212a02b083b
BLAKE2b-256 4298400bdf06fdeba08db2eef93c7b093eee85191b0346edc82e0d6cf655c448

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.170-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.170-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04ae9a963042581580234d41435d3efb9927b7752f085fd60fe943a105449032
MD5 24a4a6ef90a2b29c53dbe0b70d6801c1
BLAKE2b-256 ca358bde2d1d061c3897ebe66b5a62b97539cbed8f65bd9b570d13e36ba38f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08efab7299dcd301e2b7c88ac97a144838cbc1fd9d0861bcba25d02858af942b
MD5 5304b78ec34d04485cfbff0da11e7e0e
BLAKE2b-256 8b0499ea248a5b6a59b8212bdd58fd63d0cb5be7ae6b07ae881f925402028aac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 692840c7ef9b70ba8a1f7be07ab957c05eedbf853f3d1ebba7d8c37fee2d703d
MD5 266900e57fdc6ae85964d0b081fbb377
BLAKE2b-256 bdf646d62a1b7f3a522f25dea1c58dd57b8fcae758661971abb7b1e0f410b912

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.170-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.170-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6470b8ee56be1b8614e0580c4c95e8eabde60450a4a36ad7001c7087eae1e490
MD5 eb6cc5a93920f6867f5d33df9edef86d
BLAKE2b-256 e6dde6edc652d10a4c1a7cc9d40184e67a0c0d3ff4b434c7a504a8f1d9ee4977

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.170-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.170-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 020f9f4e0f5605abef04ed8c506e642018617b3914c15658a1b166df4f7a7718
MD5 09f5cedd99636b8bb0a9ca5a23809697
BLAKE2b-256 915e88043fb44961ab84bdd04154ba0c63a94901f8707f12d56f7d0b6d9ed314

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a114cab5e7e51e60ad37824035a31c757c36aa238205b27a2fafb8a802cfda0
MD5 6ff9873ae3cc6ff9258a47b674445e5c
BLAKE2b-256 673ca199350a2f19a8e51e083489e102d79bd908f94f6ca75f68aa9b42187bfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d900d5a40275f2c7637eb30966c70dc2ab79e4b336697356107fa514e83871c6
MD5 6160c010601cd1738e0fe23bb727161a
BLAKE2b-256 da387751b712d716950fd87af6362ee44c703038cd40195ca1c98a6af8da3ee7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.170-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.170-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ded9cca21f01bc1bc26cb72197a6417908646645e1215e7997d139f70511d3a0
MD5 bf12238396560da1da957110031a0d4f
BLAKE2b-256 51ce01c30d37232f656d50d9795bfca16f7bdf6ce3a010c3a25bd58be4a5c92a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.170-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.170-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac4c738f4c5d53cd34bda9cf0f9118a5eaffa440000905cdf36feeedef5ac695
MD5 d08b3862d2732dc8b7c59e3b62b6b45e
BLAKE2b-256 1f13776a6153476bdde7045c07f083bad0b9a7866ff8e6014b97190bf8ff9bbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 202c719b1689062b1da17a7d2c345e97108f9c581caf6e3985aac4c91771629b
MD5 52907652a47c7b72bc582d9189e80a6e
BLAKE2b-256 4e32e15f64affd315b6ac5c27f5d53f054762d55276fd255894aaf0a925264d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.170-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.170-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6f5517e8848d6e9428cee00a6a46ed7d5a88bf487d472d3352ad50aab978e332
MD5 46bf1c6afce639e4983a72c6b31bb0ae
BLAKE2b-256 b774ef02959dedd4f055e6c22c738faf9b1611cba3f93e9886670a5ba3a0b8ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.170-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.170-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3f94ef6bd4e86fcdde4dcf0072148aecbe5aa215805e759cb68876ede511f64e
MD5 25d0a316c2f144e02396280cf47ae86d
BLAKE2b-256 831a78f72eee4b479da8f2a987242072a9d9ca0c3da1d768bf5dd3fbd0025b0c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.170-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.170-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88549b3c92c3e52412d4b93492f93d8c2d65247bf8f66e943d5a46070766f90e
MD5 b37cce4ffd36638159f61b221511cdc9
BLAKE2b-256 a8bfa68ebb835f4a48504bf725f41e90880a293ba05d362a6bb513ad8e087cbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcfc2209a1aadeff29042509914873b38833e9f0207333a148e63119da1e09ea
MD5 c0588802d11fad9c49c1a678835e37af
BLAKE2b-256 0825d40d69bf3389a47682e4da35f81deb929bce25f7d424cd9ce914e58c2c92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.170-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.170-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2cd4045907d9a2d5415f406f2b265bbff646002a217b45384ab79c87b38cd0d6
MD5 a5507287a689e10be94ba48682ef6432
BLAKE2b-256 e76d36ce9fbb4b32c2fed88876125cf0487336f5b9b9813d07b084177cd09e3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.170-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.170-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7cfa688a4922b5124821aadbc92617818e34e0c1901329b69c9ed7206131047c
MD5 83b5443ba99baa12a01272a61370a62c
BLAKE2b-256 db8a002413b3e302d3d7d847c7a979de6f1d35362569cc066976af480a3b46b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.170-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.170-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d652944e8416cff81f2e356d0023853cbada77f17f0464e17965bb6f66f65a04
MD5 b1e73955ad2847ac9aaf6a2fe9b4116b
BLAKE2b-256 f2c951cc419c51e9026496c7257056b6f963fa3e3727340ac153dae022bc7632

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.170-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1bd978b3693d95d36da98c07784904af322a725f33a71bda157a7cbb22c4aa62
MD5 f1ffcb358aa51c20c2eb737512e1d09c
BLAKE2b-256 f7862a8bd97beff974b3a00a568c84bb0e89990f1ba2f018f87b3c750d986ecf

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