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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.359-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.359-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.359-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c9e79e5b90d1cb74f95652cd2d1a2ee0f22bcc9b401afc46d6f438769182793b
MD5 3b9dbed7f42318fe98f5a902cb8bb1a1
BLAKE2b-256 b2d58e36bc35907b831e9389f4306969c8a066033501de1dcfe526c29c156014

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.359-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.359-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 492278a776b30ce8baf359cb43b1a49b590968f2b61bb415f9c9497bae8d4864
MD5 8d82a8822ec5a6d78dc480b8cdb32518
BLAKE2b-256 b60ca372b7ecb1aa510f68abdf444eaf1482fc039f0a682b07b237b618bb4ce7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.359-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.359-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 268ff2f39d426490268256779afa316fe32dfc629f80bcf5c8aa7ff7ac6ef46e
MD5 49da30b7df2ec35eab06f58d0ebd8452
BLAKE2b-256 0674221383784e6272e13c64a8180d59797678ffdb08bb0f02c062382275a8fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8144a233936a0b3a5e559f0cd298130ded0fef8034f6ba1244c94468e6528d4a
MD5 d1b54a6e5299cfa43294c872b1eef8f1
BLAKE2b-256 383b2a7e44c262cace7750c7755b15ee3aebdb37858fc5ebcee2f8037d86f860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66e2a585ea0e313e9ed9807af703c3896411a10ac5dd66fbb3b8361bad6114a3
MD5 57cef759340a929acf3c0e2e0924c210
BLAKE2b-256 c40d16741983e9727c48600fc59f41d70eb94b03f5f6734cc29bddd7575efb8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.359-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.359-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dc9bc4813ddfe19c0f4a7915d94bd17da5065bc59b9e14565ef4bb759ca2de6f
MD5 9518809027263b10218a22bb394596a7
BLAKE2b-256 584626c044487563253759bed8ee395608544c078226d485ffaf0bbf8c3bf46a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.359-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.359-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9def4832eadee5dbf257de1d59120738eecb4cc3e10de7361c96387afe40d74b
MD5 11bfdd2f0c2d74253c3741e64294e69e
BLAKE2b-256 85e7a6a639c3cfcf20e2538518081db8ed244df5800c94c6717c9907ba842a55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c69ea9272a1489190a4acad1fea5e5a7505220213f75d01d15ce9ce26e3c0a27
MD5 22df3c23db142716a9413d52acbba8fe
BLAKE2b-256 9c9746358df772ddaa47d2efcd1ccca7472c34e8d6459282dbd1a06abb3dd7f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a916eff30c4f187b3a65c99a6952df5628068f5a3a08b907f3a73185d828bf32
MD5 3faadaadbcca73ed24b517a2159a0c85
BLAKE2b-256 7cfc941bf020e88c3974d34bce9e2d53c98e1a9dffbce4cf0781c5396ce8b544

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.359-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.359-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 46f8e9643fc79506121144e71d542031e5ee970153fc118d61bcec4ffb7145f4
MD5 1dc9675f67a7bda2edba68e3bb751e60
BLAKE2b-256 d8ca7ecd356ffdaea40b2d1f25169460027636c5044da33c79fa134d10d5c250

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.359-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.359-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6352d21684829ab62577c6e428da8b9eb396911b27dcdc17ee391c63696008ab
MD5 a95c40ea094f032c0e567b5950d38a53
BLAKE2b-256 05804fdbec14317d18de4ce2ec0071f01ddad18466206ad8aae28d2b91fb7aa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd4d1870b2eca0a9b3420f4c15a34c10b81d2c813d7a7e636808e12ee1faa1fa
MD5 3eac4a661da6195d32ef6080fe0f9013
BLAKE2b-256 da1117e62f44e1bb971d2e6c5a782f019e9bc1dccc099f8f7f96f349a4167a57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.359-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.359-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 20a15780b3c95ebffce525875c0b047a05e3c393864f4e4f5a65e5d23c12fe17
MD5 cbe0974b902643842d0f99fc49751104
BLAKE2b-256 b3767f21293cadd59a3d21310a714f70c86c9e589381cc0c7710d4adec8bd9d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.359-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.359-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5ff5a46e0894feb5dd13c2cbf31c2ad6cc151b7674f1077c8e6969c52e4efd9f
MD5 18eee1505b4ee80cdd566d8349933846
BLAKE2b-256 719966b01bf409730175f73fe1cec1f657fd190868f2b93382182fb6a18d27e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.359-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.359-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4ed5f7abb3487bbc534e3dc4da176cb00046a134358923f195e4114788172f4
MD5 f52ea1dbe9150d206ef157234c2f2028
BLAKE2b-256 610b7ce7695b06a7d3b1a132fb7b39b6e903c09034c82e35d45e6544bba6f53b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ce24421e9d36f150331550b2f89b2a5a2181b064ff6a9fa54626bea93d4d52f
MD5 6ca4d9dc2b978ea1ba699ab583f64cc9
BLAKE2b-256 9b307fd692b5283c810a3688df208e90289ef8247493e61b38acd378f236e145

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.359-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.359-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 04b6e8789e5ea3046b2694f462a9ef645e89865393c993fad7d1535440f2ec8a
MD5 5a2c08e6afea0acdd33af8ff8fa1f15c
BLAKE2b-256 fcc1176789cc309ccd71278d613079b3e14ccfa96dba07e28f4442b25e1a3ad5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.359-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.359-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2852fa486cac084dd90083cbbc41833ba5d9d3082f046a0e8ddfb56bd74c2dd1
MD5 f5b3867288607a56db4d8a6c13d19dd6
BLAKE2b-256 d04e56d81d42a5ba223690f6b5835c013530cce2c90127e185614b7c492c4ab5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.359-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.359-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fbd792c1b042f075804c25de68fb172d99acb1903aa289eb15645768aee111a9
MD5 1669f92e0e56278a4fc48e1ab310f6ac
BLAKE2b-256 de4d6e8265b7cd149052e339c2cf00cf8ccc16b43b832a7b7fcdad3bce24fe40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.359-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2305a2c76e72dd4eb57b1b6d7a72267d1d841d6b7b9fb5dbd643d9699b3a6812
MD5 6543557f44a10e9c2b6a1a7633716204
BLAKE2b-256 d4a859b5142d9c2724688e949339650caaf81525d0e7679cbf0e88718f37f9d7

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