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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.711-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.711-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.711-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d308f53ce78a957e29e7eb9bc66274f9f490761c3e243e82f48b83b5e7775091
MD5 7df5e5c006f1d718bfcc72479aab885d
BLAKE2b-256 fb0ab9ba81521dc1aa5f8f515305d07ec1a628b1550502fe8bca2698b1bb3e36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.711-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.711-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cb9145c7711051103f2bfcf77e787f64577d609dc1d8de2df8325f76fdd86ff4
MD5 2738d01df8c5a1c7b1f0f2c6f0524204
BLAKE2b-256 7d4db1be10834ce4502c54f533de3255a717f0a41bc5e1d17bf79111ed300801

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.711-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.711-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ca63e3ad4678b56eb4d3e1a08860ca46645f179cdeb1c0ef152370a5866b67e
MD5 dae82776a5b153ced5a96424ef8f5f15
BLAKE2b-256 66f30d2eb0632dd258790a63e45b0f3a0ca8bfed438f6c8a730d038cd52b429f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63f3732b77ad666231771a01251bb8643f2ad42724ff1040ca63b95820875a4b
MD5 a6b84757bc731c8c2238efe17b29a462
BLAKE2b-256 caa9b06100c934f41e1f97d7c23e33fdb9da0eafe2710b870837ee7bf8320bac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8e142c3f3e11b7fd94fe7d6081490bb3da80ebf5e841433b41d48d7b588b24a5
MD5 0f22bc4f69000e044d0b41de2fb7703d
BLAKE2b-256 39e400beb1419a5501866198da59443fc15de0f728efabc109a3fd141eecc02e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.711-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.711-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cf6fe1b58a56abc9805c193598b30da2b1a18c50bf0eafd86ba93e36051ef901
MD5 7d32babf30717e820c6fb5a6bcb4d839
BLAKE2b-256 4c80def7ecd3e868f6f41c46ca8a748408aa3dbb6fb766d8874d98adb1bf48b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.711-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.711-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85e9b1fd2f5da0763d8fe5f082b076823d0b2969abbabc730f66eae2d150fd59
MD5 8010f4d2f11e473ce28370b7e0f6ab0a
BLAKE2b-256 05a12a86f44480e40f4d61939f27bcee67960b58e821740182becfc34d40bce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 270a54224103f0e1e001c20124bb5d6a4c334d460eba2feb887b29c65bd95c2c
MD5 3355d9b2ef1452810ac82620e7b55ff4
BLAKE2b-256 d8d03f0b583875f1ccf92d5f5b6d5da4e8b33569332a7a4ecbf259b1bd379ed6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2a4ec602ca7f52291dc14b52a1b4106f595495d665c1e769245c3260ab4db725
MD5 45f0b784b3033e43193e18f8678738b7
BLAKE2b-256 5e1b9c3619b81272b1fb2ac6bb91b06d3b436dca3c6d2675262d080f9346d6bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.711-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.711-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 68dede94fc590061277343b078b55288a870135cc9df157ba9615428973cd0e3
MD5 f8e952a971d62b782218f6070b5c8c67
BLAKE2b-256 273db0f9e98fc058adb5ad0dae6fc2f5580dffd14eba8a30a49e15d202b68a8b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.711-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.711-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b26a54b9c99984f85f31038801bfcd3e14a0a1f594db864c57324f0ca40197b3
MD5 5a82bdebce507143d1e882da62cddc32
BLAKE2b-256 c28c09fd23593a763d2ad876863dd0d95a1a5736c6cba5331c44562fb0c08777

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a534ec33d6baae25248959bfa6418cfea57a441c5c717dca885d5eb78bfee44e
MD5 896ed4d3252a8e5fad2cf0fb96af760b
BLAKE2b-256 5bb2f9ef00aaded01528747506a65f5cf6917aebd7d236904b86b482fa88f872

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.711-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.711-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1ab6db061c47cdc8f73f5ed5049f23c8ad03c4916852334c377d64359d948553
MD5 d651b6a8328c482a5a81942717a40a89
BLAKE2b-256 6567dacf8babf9e6fd54f447f13a817e74f653c8c54da9f4545cd8024b6c4242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.711-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.711-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e10238ab070e72570292dbf32d9140d940a98b3fd79ee595d85b6aeff38a3a78
MD5 6ff5f6fef0f2209acc1a2e8de2452c8e
BLAKE2b-256 4c0906888bc174f3952415df70826d1f395ae3995317570e376121b12f3c19b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.711-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.711-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2187328a5ada5b0fce186e097a3ec6ff8ac6297033616da3aee670ed6b24f59f
MD5 5e360f597b133bc58d8204d4ae9899d6
BLAKE2b-256 e493c8d1895d65460ef50d3d6729e4432d1fec91812ebce7f9c1b2cd41422a29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25ad7913f594961327f77c729299a08207941a9c0e85748a9baa5b2b81e553c8
MD5 030c1a2da0d8999f41445a70b391ba96
BLAKE2b-256 9cb0f1286361cbdbf64a68c4b130f93aede031f594c133b47ac6b87450dd5129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.711-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.711-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 58f37d4413039e10dba089822653b20a3f2eaabd8b6450e055ae0c10b529ada3
MD5 3c844909d76a330c5cd21cec4062c7dc
BLAKE2b-256 d1f8c29f0e437891adcb14a946ea966a3ebe1503cf6a289e0ecdd3ed35580f68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.711-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.711-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8166929b591f7477ad763c603ea7948c7da5bf1e9173d0f5a4a7fc6991e3736c
MD5 68f2abd90aee84c5c5a89cbfa1332cd2
BLAKE2b-256 6531110deb0095f1a77a8f0cebee443e3509be30db96dac91ab39ddd9879c5d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.711-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.711-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 571bb0b4c647eed9fddc664713d42905a786845877a5752a4c78ba90d265dfa5
MD5 12c230be863d6f44889cc9b65a9d6848
BLAKE2b-256 d6c23bcede1a3d06b03988c292ec1058cbd71df8e6c4075d9d14d3e46a893077

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.711-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93c6d444491aff8c08c38a3052861db547a4f418e3347fb7a9c5eaa8beeac625
MD5 7f99dd018389c9a6d311836d2dc91c64
BLAKE2b-256 f6d74f73de99f37281b3a4f42760fc4c76d1cbffbe1c3bcc1d479f184b3a3b6a

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