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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.108-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.108-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.108-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 53712a094ab648d0397c46194dca4a90248da3c0f26f27a042a801e116063c4b
MD5 098f1d314bb1ba386cd9b25ec999ca49
BLAKE2b-256 8bfbf89b6819ef0d7fc94c3cb4f0679e9d9bfba075a89c4230a61fb4a9689b16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.108-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.108-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 74926b7d0ab6c9ac3f0b02c2297273dfd5d7cac202751cb3d23f5ff24a4d91e5
MD5 d46cdfb677823a05b438d4206bdcfd9c
BLAKE2b-256 3de963efad42d7b81facb706b264831a0d5b3e558afe444627fc4b0d6bf45c5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.108-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.108-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 debc079dc15a721e1e790d279bcbd3f8e51fa054f52f35e5a2e0890dea1b0e3e
MD5 257f5e84f73cac03a0114ec9eb40019e
BLAKE2b-256 a6eebe97a1b11494a7146ccf4bd1e7a7d33e0a59064595b31eae093d291ff332

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1383dc46db3be3c3ba7cc7fa637a33e53bfc48471a5d49b0cf9cdf3a2e9a385
MD5 d38f2d7b5879398495b2170b84111482
BLAKE2b-256 0c477ad16b606f423c1e6444b0a122335fe9eebc881c8de80eba74dd4e2d0fb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 67f0eff1223ad4fa27f1417cd735ca6d200e402903859b749012cf6f137faf15
MD5 6a1284978463de43a034cb21264fc084
BLAKE2b-256 51e984ca8d13c955d6065830eb008f20adc78d97ad8cd1438822970d6f63a441

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.108-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.108-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 80b018cace8b907402b73c5f5e6d94d134cad1ecbb214b2b19d5b87d10c3d867
MD5 114b9419638cae89cd06ca33965fb481
BLAKE2b-256 82308ef16e8ff42feade6cae49838c224c258ecb90873b865072f675430c60e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.108-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.108-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b370b1dd7bc203a3446a8d927404d97502548a7172e8f17f17d10afa971f90e
MD5 a7051dd96afad58b84532ea6677d8d1a
BLAKE2b-256 7f426a40dc51fd57017a23214ab2369db9057a583ba553b5ebfd682248908c71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a881551f6ccfab521d2745bd1477ab37a48d93b482d1f1f8db78129ae7c194d0
MD5 1e5b1e3292c6d2eca3e0ed858b86eebd
BLAKE2b-256 636a884ef832133836d83134ac6a455b06e4ec3db938cd3bb08df05ace6e08e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ff9ded9c06da536e4783cbd14fba32a358ec4c038b171209bacb5e0b1711792
MD5 081c14913a6e6f0e9f6b84114341140d
BLAKE2b-256 8470c712540c709664ae9fd92493d34d7a6b2b594815a46c4da2174d240737aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.108-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.108-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c4e3e29b15beb535e6ed2881feaa279dc0737aa04bd67a2685ca53097dcc7650
MD5 b0cba8e661db0c9d80a715d405c65444
BLAKE2b-256 db729d38d4c4d099ea29e5cf8bc22e055f37c2ce76eedecb8104797e3ce754e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.108-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.108-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9931e09b9572f9577d6fbcbac432f7b8436bc8292d9311b59f8eb5873e357230
MD5 ddd758c6f9c830425332066d680376bf
BLAKE2b-256 5268625363d7209b07b58750baf98d3170092a526cc3b49d9fdf649d0220d3ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2a8beaa7aebfd39de60b7ac66cf561979ea2a921af03f28cfa283c7fabf5add
MD5 35794a1a7fb9ac0247954d411c5a75d9
BLAKE2b-256 980f71f48d7bea837c187e631fa566afb6506deb1f3979428ae07eeaee0cf15f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.108-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.108-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 81f3d308a4ef6b085de2e958c8872b708d7a97400fa1b690e3dff51bada21fc3
MD5 341f530cdce6da90216286784d178fba
BLAKE2b-256 b7dad8590ad7a18e232d6d6370d26904963717c8be39c891d70577c121f679b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.108-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.108-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 75f2e40a491cf47a22dcfc61e7129f46602996e822f6d2cc4e9d6152df3e6b08
MD5 a50a336c2a4abbb6c3a6f1e569830049
BLAKE2b-256 6be80005349f66183d8ea24ae2b25886d1c1370edeb6bceaa76a233b455ef4ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.108-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.108-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48748029ea9039a4b2448c79c14b622de2b9ac739a5c1d55428248f14668d896
MD5 f36abeafc8d0936d411d72068a789fff
BLAKE2b-256 fc2bb3003606fe7875b819c211cf765d44267180eb791e6f15f3a58e344bb9a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db9f61370e62e6114c7f028927c811ca2d0c689f1cea008db20505466f5a4980
MD5 7ade3e0b6a8f8a7d7069c9fe55ca65ce
BLAKE2b-256 acc7f0f1dec6e43e7961013cba83743c379002a50b7bddcdf1ffbe0bd22ca742

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.108-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.108-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e843a173555ab0266f4c61039f38e259050132b22f661e4f7b767ed9ab10896e
MD5 3cfaf940fe6b6b9833a78deb941b5ae6
BLAKE2b-256 306986afe5803e5239fd3e5de2523c2b365e16747e21af9bf550fb3eb7bf4bf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.108-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.108-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 17ce46ed8cfdc6abed3a979b9779dfef6b00ebef72e876e4b274d7eb83464fef
MD5 d3faa430aeb3d2422967f0d6aa397ae8
BLAKE2b-256 a32ee55b21f36472c600dca7f912c1b7fc30803a6b014c6ac4461b4bca9c38c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.108-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.108-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd28d81c4eebaba4b09377cd9be82d4156f216ed1182189235141886fe29a912
MD5 a7edfdd1b3bb1bb21a3d9786812e34c1
BLAKE2b-256 8b13db2e585898775a786ab01ca3fbbc107d885446b50987c0cd997c6d4a1415

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.108-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be2c3d930da45cce13bd61f6494a907c386edbd3ca8e23afbc320b648711ba15
MD5 72fec1ab564a35c3be57cc12dc98fc8c
BLAKE2b-256 d1e9084feb5c57aab49ec5ed0614c7a1d8377397a3d85b5c7707be70e0444ba2

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