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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.438-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.438-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.438-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 80c9c5e20843a165c01a7a8683c41fcce8575242149a082f306ab7907d393079
MD5 867b47ab45a4b174cf3243b42091e489
BLAKE2b-256 7ed9469c1a33a3dae7256d230adc5b9173f1971167165295ff0d445db9b3420a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.438-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.438-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c47beea2fd6808f037b0dabc63377be7087b3a35a5c318a31727365723cd8916
MD5 e691ae9fd5e06f1737c6e9a0697ae9ef
BLAKE2b-256 33d2492cd869283f729135dc177ba7b0d533a9597d520ca1e43eb2607499c26f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.438-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.438-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c3710802e0d1b54d47b8d7d3ba7b77cbc35ea44c9dc0fc09c8e2f630a5b4dc7
MD5 66d22b99da7508b12ff49b0f167cbdf8
BLAKE2b-256 67762a0e18a9169c4c1eca677a0e12e0172f935b992d951ea2e59de89309ae55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9731263e95d1c654fc0704e54f1e68ec95f184ee18dd0efc3f113e700703ae30
MD5 f500b83bebbec6ecd19b34c0487c675c
BLAKE2b-256 ae828dd46ece6868785fc316fc2190f48e8458d31534b43603f59e9200a8027c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 35336ad47826c9a8c8d00888334e84be7917d13e6dadc83ca31540fa421d141d
MD5 400b23f2883f6af15544a2e38fb23a43
BLAKE2b-256 069050bd4155ca569385e84bbf5322fe87044484bdd35513f8c5af2f2ca21df6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.438-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.438-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 03dcf0876bdd19c58a16c584a1225687a64a9d58dbad16415c1f4d22951678cc
MD5 945a55b738346f77c566f2a852ac57aa
BLAKE2b-256 db7e502d6786dae3e7c4a253db051010787344798df38dae575fcb1245a9ccef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.438-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.438-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 896c34eb71ae3ad766f27e07c14ea50e4a69893af642dff45fa16af2659cf562
MD5 a870d0f8c015e72c13c76dea12c713ec
BLAKE2b-256 a9edea2409f090f7ebb2d0a96aa9f15e3f829cefaf91204055bc159ec9d29223

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c78099f15bf254b46da299a804c9527c650afd2dd78ea3e6f81fb74cb2c5102
MD5 97d42bd0c36a6916afe054b93f6d2599
BLAKE2b-256 2fba4b2f84272f33e7beede9ce76662fa26cc8e0b09e27fc0ebcfa7a59eb87e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0275045fd8879e6b7ab02aa0a995bde86468aaa7f4bf8f1032d3cbaea3ca9fe2
MD5 f10b4a475e0a3a856ca2bba0da2d07ec
BLAKE2b-256 51aaf454f888bda08501d99c8ceafdeccba4825110a6051a20d2b5ecb2df1af7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.438-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.438-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0dde02732d49b1c2f6968dc92a9af587082db1bf632dcec16037acad43b85529
MD5 a0cb84f922e4836c884a0265a926d504
BLAKE2b-256 b695002cca23769361555124be4ecd370c92cda1ae931c0287e5f78899f84d9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.438-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.438-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e551a8f4f7e729c1620d45e17d73de160c4907f39a4b4c148de898c804731b5
MD5 22f7f48f7501054c1f6f6de211944138
BLAKE2b-256 d19c4b0f2eb57f0fbe01fad32428d9fd459128777bb54fa694c538c3a708b2ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33176b4ea7167e3d15a201c3eed72663ae604d2602fb27ae12be65abd99427cd
MD5 0eed6617a2981494dbdeaf41370afb99
BLAKE2b-256 45a435c50004537648cae8d51a5c5356543e252a45ac8744d61f82666e8d1c4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.438-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.438-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fa3fa8d604a5850aaa6f7bd8fcfe34fd4f240c13850832066879682bfb31359f
MD5 98c0389afc78f6cf5a042fcaa8d70749
BLAKE2b-256 f0d374de34c1e664d972208a3b412606c8f1bfa2eb29e3b112e72afba3d00d4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.438-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.438-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c6bbf1df17543495830bac39e31dc10ed471a0e47f87f59d77c01166973a5eac
MD5 0ce160b00a45fb9f282ee4672c64e504
BLAKE2b-256 077a0fe0a7b9f40f8e1d20ba73f861f19d9f06962c7b8534794c9d4c056867f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.438-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.438-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 627a4e08ea9e904d316e06d7e2390bd5948cd6d6b4c7208700fdc15d8c1bff4d
MD5 5f869968084baa6c3f6470578ed8cc2b
BLAKE2b-256 6752e98c1d83466f630965bcc286b72b46e96e0d0e27b25cf8650a806b3e9c44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34f8347df8576f244f4d242559e2f9cec6fe269c56df4e32438824c4c795d3a5
MD5 df64ca0f154c4b8e28b958982841ba03
BLAKE2b-256 b1e195bc95dcf36c7e7622fa5319c59ae659aeb31cdcdf0ece3ecb806bffca03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.438-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.438-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ea81258b92851dd382da2998c7a73bac97e04fba166b3678af62c82132f0209d
MD5 1d306c5cd826bdb679164f0e5e6f9432
BLAKE2b-256 06befbc455af8cd40059fee86129ff2eeab587792d5aa80c9b696198f46c2f21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.438-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.438-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dc4c36523a62f4910694cbd91a30a350209cf55c0699b366052319791a67c38e
MD5 d54174030d84cf8940df8c400983f747
BLAKE2b-256 aff092d73ae74fb9e2a155fefcd18f65201bd8ec338f4e79f18ae529dc920557

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.438-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.438-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93fc9808627564de806bb94bb94f0e98e6b160fe7ff642fed8eb7bd09ec1e35e
MD5 b3df9efd36680727e2cdbe949c9bd812
BLAKE2b-256 a494d2552a1baf082e772617bf360a80ba8e4a4c2b8f59c0792b23afaf24a26a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.438-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88d7ef93db00f506df2d1c7b49927dfcb9c2328c7c89a75f7f552866d6fe05b5
MD5 d7b6c99ba14fad5e124dc902aec1c625
BLAKE2b-256 19c830d753859523b2146f38f408e3d1f6d7419aa6751cf7178d0bbc1529a2ff

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