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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.901-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.901-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.901-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8cba37cc6153f601e36799d7f2b1b30367c8948c05ba8bc24e2668ea9ed55a9
MD5 090509eca3aa1465188f2b1f65760598
BLAKE2b-256 a9f5293089c187c162055a59b20e675792ba664e442f15d53aacf9871966c96e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.901-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.901-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5d1774a7f1dd72959e1f86fb411b9df53ab76f811648ebb3a731a6dc8761d8fd
MD5 81c90883579011efa391374a1f14b3bf
BLAKE2b-256 b22735f76ad62c1dd482864ee2c2a2a489013dfb2aece3397e53086f7c35bcbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.901-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.901-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5a308ee9e803af6add2547ba42857301a3c5409a47bcaee8da2cd39179bff5c
MD5 aac6c394a72a9c63e80bdce8326df878
BLAKE2b-256 991ef2cc8d3bc3d440b85fe96b7795de8010676f920eeb3197d35ca5e8190100

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2bcf76bc73d2f34be43f5b070427d2f9d939819159594e1c2929488fbf8ef9f
MD5 3d66a05d1e2a82be54562b6964633013
BLAKE2b-256 cf1bca24cb3ff88f090ae4afcf3bbe5265c65c3ae110161fec2cba29ee6ed013

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0e183a964ca34785638c94ee2ae10590501c383fce1d161a0610df0a5779e0c3
MD5 5c2a44d30d036c9cb99daa2c4bd1fc76
BLAKE2b-256 a8bf396b35e780b979547c48d2cdfa16e6d9eaa3cb1d84f2a63fc867ad14c2fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.901-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.901-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5acb270144748be02741ba14b7c585728623e2fb2fb5d1c5982e9aa1a6b07e87
MD5 e5b54fda254af9900206ab9999ee1b98
BLAKE2b-256 8bf4cc67ec7bbfe311daeedb8dc3aa3bed2ccbdd42a1fbd31bfdf0c182e927c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.901-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.901-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ce97a1e3fcc151c3caa0dcf7d5d60822e17a3017f3f89b1b3032d7c2906cc28
MD5 f89992c75d1e8fbaea871ef2e6b1eaeb
BLAKE2b-256 1d491f0d20eab21e1f7c8d43c1978c6e60026a42bcbebc4e6ce553b170dfcce1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b17623a4d8c7d9e4e06429bfa890f7d1f096e7158dc377be5dcdeec89301425
MD5 55ae2174864338269b68c51dca93a176
BLAKE2b-256 5baf3189d10de4a72c8bde62bea3ee734c474011d9aaed1a7e67d2408760eec1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b6f4b7a688fc3cc1f9d619432ca399bfc7b655662e27232a3d35c9559d64e1a4
MD5 5525d070902295f8f7b67ce468012fb8
BLAKE2b-256 729105d94b5a032da464f36bcab1f33f8589961edfdbdafc71953cbcf54174f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.901-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.901-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 40157b1e8b1ea209a7e9d37cc9f0e45d25a2c547a43d87274885cb2350aa9f08
MD5 ab45ce21c50955a08662e987112c0eac
BLAKE2b-256 add1e175b9315d65aa7a578b3bd35986cea6e4afa3244641e22aecf6f8e2fd83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.901-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.901-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a8069cc612c8838445e3671650f995e845427c589892c50067c448e0976462d
MD5 0c8bae235e6235613e2498077a880c25
BLAKE2b-256 5c1e745a8a9d1701cd1c1fbcfe669f3802ecf3999b4d30fd869d90f15daaba5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20b411a74c29e81a1c1311ee0f6d12c3896bbf24a605079bc138c2bdb770cbbc
MD5 b72999dc689214e471e60866c349d370
BLAKE2b-256 2d9756dbdca9d1f879bc6f0f44099a9713abaf9d09262c10134c83b8d9d9dccb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.901-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.901-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 04fb97339160e1374e63bf382d7998604184eab1e4357e58a68d6b447fed7115
MD5 6253a349633e214c8adf30ede39ec0dc
BLAKE2b-256 8ded684ef965057b2cf9d39cc87fb42a67ef030051754cb26bdc15beb145f439

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.901-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.901-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 070cb09880b70ab0b216dedaff4fafbb149fa4fcea5e8c6d16f8da37d682e0ef
MD5 348f0a839a02c45f4964e8c1cf8b84e4
BLAKE2b-256 281511fd97876530e925edae04cf06aefc11491fb9700dfe3e634cfb4bb01ac8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.901-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.901-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3996cb362c606840d92dba96c15a91a001345c0b6ef6d4c4c4440f4dbc9dea15
MD5 ba99c4697f346245060fc6a636e38da7
BLAKE2b-256 4b558e358eb6725b323d4fd54d82ee10ee121284d3686f4160cfa1423bca792c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91b5701ee23942c200b9e0bdd0405d7827744d71bc6491882111227a5ad3579f
MD5 57e8a6135c5121c78198cac8594a93ac
BLAKE2b-256 bfa1c46ef8507faf7fb54502f2097e8da306f440b813d2eab88b8985cb3a1b21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.901-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.901-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 49cfd21894a222fe72984f1f3f3299706171ce3ac565c38011841b3d2445f696
MD5 40b2f0edd2f2160c51f83e7fc5aa9da8
BLAKE2b-256 ec42b4c9ea3718158dbbc807bffa032030293fb7ea556145891c4171782ede9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.901-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.901-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cd53167f9935e0798befa8fcc617238f9bcced836162672860cae0b1c339f6f3
MD5 e5b7e0a05ebd4bee74cbe717e5b0978c
BLAKE2b-256 40e55d3731040a37fbe3ba90dbf8267086a8c38d5422f5ce117a06a7fa70540b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.901-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.901-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ced938ee995f51a110e34d8bef4e94d3d3306a63eea6d61daba52068e9e48cd0
MD5 a6685eb2e00b24a2848da5a7a56ad6ca
BLAKE2b-256 b61d6ab6949f9d11b10a8e5c1b6f96051182b742bd31e9a3ebd855f905d6c5ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.901-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5f700bede129be19aa737fb6d6d817ce5ca76779ff0866b51ef740a539f9553
MD5 5c6f52dd320cc5835248df9f24deebdf
BLAKE2b-256 947160c51df6c1026c86bb803306fe7b29f67405e265bb2410bb0e2cd3e13582

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