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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.328-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.328-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.328-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9e27afa1518c54e0fe218abbf71baeff9efacab9143bc5621d61de013eb4062a
MD5 1e77594d4fe52d77d9b07745aaae5c39
BLAKE2b-256 ff0a3b62711acdba50246860a7a329be0f7073644b06f6c3e9407a54f128efbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.328-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.328-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a7fcd2c9af6f3a728e338bdb13d825464893e4915b83b092d8540b1dac02b242
MD5 de1a5931115cbee5faf09d386e8dde22
BLAKE2b-256 60cd255b72dc3cf3b5d1845b7d49cc533bc70650dc315062108581b8bfd96fc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.328-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.328-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c6449e8a1badf092b39340ffe89739bb54d1f2dcd42cf5ea7358461e95b9be2
MD5 c9b186e3f64ea91f2b15ba4ebb4f574c
BLAKE2b-256 3ea52d7df508acd3ffb3de53f1f5aba71e2d68a224e89d9ddc0ac0cd17314205

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76454925e63d1e0004951cc27d003ff1e2237b9cc392385e24909626b351a75d
MD5 9bf6b273e763d29aea91f8514d9bb21b
BLAKE2b-256 7b252a96848c3ca33899cc8b2f9f5ed0396639dd3d6b083df2e7abc8d8ba4301

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dfc38732446c5fe2ba4bd498f959f4ffa98bdf7067831fc29507dbf7ac335cb0
MD5 2b97224914840b0973173669e4680382
BLAKE2b-256 4ffeb171f0f990b8135bdd84e884e87e34a68b1cdc166dbeddeed898bb9bfb5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.328-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.328-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9bc178b802c5df8145954d0722884ea29d065683d0b91e4652920afe881cd169
MD5 d4c519ba0b043306841fc34760ae08ca
BLAKE2b-256 ec8ff64ead1dcb8d5227a3d475077cdcd8747a2122b86f370d8793a822e6ddc5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.328-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.328-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67839353d78b0396cb753a21cac3dc2fd40894acca4ed6ce487fce20ed9d885a
MD5 8fcfa274d4681cdb4dc84cf13b21e8f7
BLAKE2b-256 bc580d4b1ae110a745b97422fb10673c6e5d6185d0920fb443242eab799dff6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3ba2bb992d3892e5b40e31b9e9bff8713551dd502401aecdcf64ab956d2f533
MD5 5617b7a889c1d9bcebbd79eb3c428a69
BLAKE2b-256 e8ab866e7217335b4f3cac564a1cd0adb13aa83f960bad2d78053ebd1590587b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 068d974a4e00d3c40e2e44cb42c26c9df3dbe707e8b7ff8dacc399292ca2fb49
MD5 ab310b028808986de64c4171616eb613
BLAKE2b-256 8b59fb13952e2fafc952b4e72a2cea47dda70f896df529468a1c18cc3a0e1f50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.328-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.328-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3faf96223a094b117b39bab3187950f5000212edef0ec6b08cbf579b204bfa91
MD5 6242fa31226d6d2dff71eb7215fabcc2
BLAKE2b-256 618835c05b931d61aa72e0543934e9ab95b40f84dfc5221d994d65f34226070d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.328-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.328-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abc6d9656c5dc4a49f03e9812a7fc40ce23d352a6e04d38f3f6a234860e24c3c
MD5 a6ed71de89dddffbb82e3ffb1cbfe0d0
BLAKE2b-256 e5f89216f5b58e9cfb3ac038076da4fe85be032ccff6f25a3fe5b3e7f27a76db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8b42697ca893ca76fb8acda13ac5e9cd85d152c240b4b93cedb34d2e163d8b4
MD5 15d8483e8265e0a14d24b19fc576eb72
BLAKE2b-256 0b6bf1da409925cfa3a2d1525fbacda529401d3c08db046b5857728bf3bb8369

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.328-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.328-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 43a75628952cb7be72351f19cfb8e8557432b3f75c5b208cd0f4f9f862fe0370
MD5 f48952d68682c53bef52677d43fbad2b
BLAKE2b-256 ebca1210b46efc8f386e40566e612ea59d3029dc19871efd6df681ffb644aff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.328-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.328-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f11b131be70716e3cb9cf4c8259da6d3eb91eaa7ab40ab773ef9b8606ef1ad1a
MD5 2027fa8bdb65fc93759d26c9bfa5e163
BLAKE2b-256 f7eccfa0969f8a4cc6abb3f9be26b1d489eee4e54daef7e0c42c0e2f9b883fae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.328-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.328-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc11a3afc454847c624ae94ac0db412b2ea78c99388968f562014ecf97accbff
MD5 9a0c2aed2717732439e95f0fa1eee003
BLAKE2b-256 2ca3b637e648803e5976aaa8ce702e704504bafae470f9862d51b9e90117b274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3df870f37d861774bee0da40ec39dfcfe17d70cf7e93021223472b78f1849142
MD5 049f5cbfaff0d64624e5d3a8a861a1c8
BLAKE2b-256 b1d0f3b45290da2d22226c239d5c6f345ede5ccb406459ff0c232ed1764e23ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.328-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.328-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d89ebd983fab1981b566845229a3cf3151a27ac784b6d7d11393193d63773012
MD5 0a084b611b8493a624f797bfce075b0d
BLAKE2b-256 8d966e58ffe7b34b5ff337f650fcec474bfe46e5a25f8d72f61d46a62c689618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.328-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.328-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 46b1c734d4740237732e7e46674ba410fc7fb31171bd3f550f721aeb639d8684
MD5 6925812dd458e1bba221f92d0363dec1
BLAKE2b-256 133baf09ba955335ce2184519e453b879e83971fc64707a0955a269d3f4bda47

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.328-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.328-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a11e15f21cfc8f4456d8fc9d5438119da87ff21c67baffa1c603a52e0c8e3447
MD5 bce65cdfb33591b9b81c00bb84d0a439
BLAKE2b-256 73b59f0b9571c502c345392de4179cc5b14c022a57d7a07a515ab7174bc98f7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.328-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d941f00253aa1a2fa95737402eeabb959b31ab21e9aef762c76f0d3e9e59186
MD5 a5e5683cf596c05907f4a98006a07397
BLAKE2b-256 0a86d89212049be4ba1a954e72829190719463858776f09003a4c9ef8da6931d

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