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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.56-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.56-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

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

simple_equ-1.2.56-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.56-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.56-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.56-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

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

simple_equ-1.2.56-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.56-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.56-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.56-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

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

simple_equ-1.2.56-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.56-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.56-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.56-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

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

simple_equ-1.2.56-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.56-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.56-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.56-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

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

simple_equ-1.2.56-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.56-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.56-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.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.2.56-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 11c1c16cb48a2bdd4288a0e72427e4adc6e481dcd52e5b5246c8fc507b69e259
MD5 0aac4d0bb116cda0a7fb231eb3415364
BLAKE2b-256 e7f391763b33bf6c6d8ec22d70f4b9e9e62187b8d723762ef1165532f37198a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.56-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0745c792efda254be17269f23a89b40da5d1cc6714bc873173a844c4a9d444b1
MD5 7b6243f9ce2f087baa0d27a2fc21a160
BLAKE2b-256 a371c8c83c68940d010838237eae2d498e78206bf0b55e47c112b69e8b1f0717

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.56-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.2.56-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d61343593a3d8662b9ef6f3ee713875659dca8c48de091e0577120b55c34fa7d
MD5 8dd4c813744e4592a3fe97945467d99e
BLAKE2b-256 c0870b485a5d9dbcde418a0ba1b37654319cdf4a085e27836157c4b6010ce327

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.56-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8d9293dc6909f6b7adc3bbd7ff604759ff3267811f36f5938ecc90f4eb06b34
MD5 9d2fded65b0b590811167dfea4ed2952
BLAKE2b-256 c37c27aee17a1e4eed34f14f8f00a62efb1aaab7428cc693901445775748e6ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.56-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bcb3597cd7a9a67a7a72bac0090a664385e310370fdfb274a9098df1a3362c75
MD5 2c77858757a5a719386497c2a36238b6
BLAKE2b-256 16cb9a866ff1e2fc7baf7a57c65aa5bc4cc8a273c52e57fa83c8cd1a882fbbd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.56-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b14928ae0e3b02bacea8934b2196ab3f5b2263562da095829006993dfc9c754e
MD5 77e02d237832f96d1699110370fe32d9
BLAKE2b-256 78a51ea6e1749ab46810b89e800442eaa654335473aa4c073d7d34d236bfc0a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.56-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.2.56-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcd3792e8cb20ec10fe2c12249e51fd796542771692fcb695295f9c6826ade30
MD5 22a2e6b563bc74668c031d9d7745d184
BLAKE2b-256 07c295647bc7103c34a5122979275ac197df3624820e74c97f291b1513a1067d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.56-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8c8bb4ddd3e23dffbb3917a1fb63dfaec081f933b1eb9c75ed8032c44c9dcf3
MD5 99ae8f7180cff28cf2c9f9dee311de98
BLAKE2b-256 6673a5fafab44baf2d067c3775c8d96106f54caa59f20c0884b4fa2fbdecdcdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.2.56-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c397a0857f7df36277a63bca2e286ed9a59d7963e03f369621c4338c5c307fcf
MD5 b37009ca42fbc48847806dd6a27488b5
BLAKE2b-256 d80a96010bcb3ea4c6ee779251c8beb0d3cfbb84553b8f38e0056a64c77520b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.56-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4757852d848614924d43f4b51aea06169e66bf1713bff6fb84ca3fc3eb7663ab
MD5 7537ba703af56037665ba447f072a751
BLAKE2b-256 552e9668e37c566986f815379ee5e2c5322ef85c259696193440c9016ea3d26e

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.56-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.2.56-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57fc9bc92e61605048dba8452d26d18e0ce6a71100fd640b680c2c5e754e1004
MD5 08adae4bd8563292adb3e43936112b4d
BLAKE2b-256 79db606171249c48986e8fd88b26e5eef36b65bf16ad0a921ef27806393cc44e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.56-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5d41e3514207cf231dca39ff1baf87e62a103e8462dba23ffa4114041f88852
MD5 19600ec93d2b82a71d47b0687fe56954
BLAKE2b-256 d21b6801ff7e545b5a5e74273c6286e901c94a2bd590d2e7b3ddc0210e9b5c69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.56-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7dbbcf4049c0e467a1bd4262c7169fb0cb8e2e0919e7e21bf1f65158fd71a3b5
MD5 50374a7b636c72fbafca98022f0678ed
BLAKE2b-256 034432fa6e35b4de352eb98d67d8dce198c83dd9885739076789a198453985de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.56-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 daef5820e60916f49e1ee1b6b98869780ea3d6a6764cef48369294220cd15dc1
MD5 ab717aa9aca46b2ab8ba1314771faac1
BLAKE2b-256 7b523b42af6efc4519c05c643cf5a36248e189136722b34ac2b1b450265fc247

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.56-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.2.56-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20784bc4ef98448f0b83cf48cc356b1acf760719842733de202eb40acfa9e9ad
MD5 b6be3efdb3cb4e47f4511b0322bf2f3d
BLAKE2b-256 b946980531b81dfaeabbf3f3bc78863b7d31a7d17fb4ec121eb4bf12e82dab38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.56-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12d3cc77a6d4a519266cae6e03c029905c6f1a0499a9af8472c360c46abf3ad4
MD5 9a5b25ad5bb3d1fa8d6852a55c70cdfd
BLAKE2b-256 35dfebc24586a4fc5404d90e12bfdaf837f871e4d2a1cf8d638c1c93f2a9da67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.56-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 382e9e0fcd5eeb52c0a2896d5c9fbe7948aaecad6aeca497af513269f3ebded6
MD5 abe1085ccdb00e14e997c0a33733f0a1
BLAKE2b-256 29825296fc03a3a49a0c4e9729ea8620cd736dd860400397d5ebc3f59e74464e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.56-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.56-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 db12606c4b200cb5a50c4bcb0d29745f404d11bb607426e3c0d09accc1c610e0
MD5 f4c5df7f365c75e13ad4f06f399741de
BLAKE2b-256 8cf7b1d9aaf788c8f18677f2534a344dc047195c965c6db14c48c17644da56de

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.56-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.2.56-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 25eef643f5962df74a30add02dd73063e6fdc23a18f86c3a5cb45c2ef7ed8d79
MD5 cc08cb890b7aca1afed3d9897cc69c5a
BLAKE2b-256 a92b4aae8eb0cc629403ce7d46f43435443ba9eefb3efd0e7dba36b2c384a34a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.56-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27c65759ab447f694e6a073a7ec64c56cba224274c9d406fe5388cabd0cbb19e
MD5 ebd411f47e6c1217084c9827a9bb2fc7
BLAKE2b-256 69980395d99f04ec665209b863bef593fefbc5fbfa9dae34c33f05888891e42f

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