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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.25-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.25-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.25-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.25-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.25-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.25-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.25-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.25-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.25-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.25-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.25-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.25-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.25-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.25-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.25-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.25-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.25-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.25-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.25-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.25-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.25-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 739b1d8e800c5c3fe8e6c5eae1ac394a3f0244e24c11de8f5b320f08f9f1efef
MD5 0191ef866ef3c945ee415e65d45011f4
BLAKE2b-256 da204948edbfd641d670d8dcd25b6867f6b3090e11aa3672c4ee979db8cb1f91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.25-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c77d09f0218eef357d546f1e0d50a76e61a0a95151680f91f331662925618667
MD5 628793f3052c5b6027080b5c83c0b78a
BLAKE2b-256 5b1912f301b90919f2f71712f3515bcf2041cf6459f3d3fd4f952c1e3ceb3d5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.25-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.4.25-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f119f7c7c87c755308399ef4252ace7addd4f383c9dacc44d7619d1795d00c89
MD5 234439a9dfcf17cec0dfe67e8a43d2fb
BLAKE2b-256 0fdda196b91853b4e559af43d195d60e449ff688c7c946962b0103ec53cabd0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.25-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d479bd3b83a8b5cad3f9e2ec459fa6c0bde3e514e99d5ce5024d51865db7b087
MD5 aaaf91c3ffbb3210fb302db9b044ffe9
BLAKE2b-256 23dba334088dc7b324b0f5729d77cddcae8ca3510207b162bfa160879e619422

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eaeafa6f1a60d33de206b4d3555bdbfbb6de2fa484bfebff4f0ef7999506b78c
MD5 7251bdc4e1c41ace1fc7d52a46994ff1
BLAKE2b-256 625a723ab95466015af7e45fc68febc7e86df57e2480aa28ce6a896d16bdc7e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.25-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 45b4029c2b52b3f805729acd4a0589069ddd3cc28480265270b4127e8f04d5a0
MD5 c8ef0bd1b8dc2b9c7856242881298ff5
BLAKE2b-256 efcd9dc133522bb49332192656bb2df2b4fae624a30503e057928ba7713d09d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.25-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.4.25-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e916f276d14afcce380c42afd43076c0422879833473203b127f96a403bac2e1
MD5 e3909584501fbbe71ccfd43f33d83214
BLAKE2b-256 103bd5f46f516ac4ded5f0756155e6fbc8555141d7fdc13807aead9d144f4ebf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.25-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d7591e4ce7edc4c58befdb1fecc012a45e716bd5845cd629d320c7fe9bf889f
MD5 3864f177ce5e6b422758c8b23134e149
BLAKE2b-256 61d1fa71310f72677e61617eca468fd24d747e09f8f2fafdc5b18f95428d53b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.25-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b00a6927e9bfb08234c299b590b83b5d8d20a08231e107fa9e0cc5ca41f2ed5
MD5 becb8828eb14e02cb05e368b89bea871
BLAKE2b-256 ee5431241821e4ed626a12eb8559f9b3935b6c34785360ed859fc6addce8f961

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.25-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 33e9bc7ffc52c9d2fd6afd32e5ec6b5e9dd863c0158a128089544b21d25fbb20
MD5 697bd71e4c7537d23222e008e000fd2b
BLAKE2b-256 d228f6953bd13e1f839b826931434acbbb195372da5b8393243fedcd3b4140db

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.25-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.4.25-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3e1f00b5dfbf66a31908ffe441db69176aa573674ea9963013486c7beeea740
MD5 50f5c2ab7980f7566788130dd437dced
BLAKE2b-256 c7b79a6896a52a0575bfbd4a6d7d5f83d028f66f48b57b113819593eb7794c66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.25-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfa8c8e99a81d2312171c520a2f3c3472ebdb8cdc0625bdf34947350be892c8f
MD5 631fd93fca5921859d43e62587b62a75
BLAKE2b-256 05c92bf968f0793673df82a8ed3bde43e766a03bc526ab2297493fbb1e2b0c19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.25-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 163437f8e08790ecc5b73232fa9b6f612e4647aef97ead952a9abe2aea2fef23
MD5 2108208c5a5d5d873c75750a8d6c859b
BLAKE2b-256 4edc65c36f79981a46c6f0e2fdee038f7e549272ce47b808411a18ba44e4bb9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.25-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1f0dd858d7222684ce08846093b75235c237fae63d28b809ef8b60b71329e70b
MD5 3f3bf49876c0a3f3085120e382b4adfe
BLAKE2b-256 df4ac7cf3bf3fdf6c600a94590ede7927d3a2bc42bf70ee3f9f9c55c6ddc34fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.25-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.4.25-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e6909855f091d5680b6985d22d7a6e13648c2cecb85d91d5bbdaefb9a2dbc12
MD5 dd6a35456e898fdf42402d0679968584
BLAKE2b-256 3af2f2a7d564245c575a6900ccab261a74b0b50f96f4196974af5f06479ee85f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.25-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6d0deab60c54f12aba9c317f33257dde90a8202d33bdbccc4427dd1a5d723fa
MD5 90ffda2e86da93ea48ecadce043a008d
BLAKE2b-256 9cdb035fdd4a92afa802be4c461249c428cca80af41f0d152caa88bda86649c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.25-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3a8712b11dfa5135daa3a4bcd0fc5c9276d07107b5a16dcf177c697e723e03e
MD5 fb8536f284f7764b8a9bfebbb5bc3c4e
BLAKE2b-256 0a664a6ac860423ed485858fa44f6786e6c9074145b23e52567b062c10853f65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.25-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.25-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8e25fb5838809e8dccbc3d891525e61988f2a0b70d2df0e7aa0e6eb0bbdaa061
MD5 ea719189e44905508b3cb12f27728d7d
BLAKE2b-256 6ad6d59451953d6184085caea73dd72a029fe182de42faa05533369b1cdcf313

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.25-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.4.25-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 287b12a96146d38ab7e1e36378084c415217f861474593c5f1db416a44054031
MD5 1bdde1ef8ed0d08ac269e58188cd3257
BLAKE2b-256 c6dd88b07ef059d5c391425e998eca2f31e158b4901f1256a8d04d67e89174fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.25-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d2cbeb7dcc366bb5f52c65a8990cc62d50c2e93d65eb80a115a5e66c3b0c355
MD5 3e3317fc6e23d5374d7d7e558856bd5e
BLAKE2b-256 fc5fd0506e49b3dac7d718598ade6b1a4bc1f3714c735572b76c2455bdd7b3f3

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