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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.333-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.333-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.333-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 abffd64ec1fe9bfd734f5d34ed1c0b7602e9036d472e199145d5422aaae4c41f
MD5 25d88a817378d0d5f340a0a925f7b83d
BLAKE2b-256 c0a9a41467aa8a5ab2d5bc33cf64cbe7ecbe7382fa93a660231ddf43d4b8616a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.333-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.333-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 54788dcae54c15f59105f78bac566559431e2a65038b1eb43391c1a01c541d32
MD5 1997af2b03644fcd986336e8e2d4b4b7
BLAKE2b-256 bae75c9598f862f1b0c80a2ecae9a66cd744e1ec1f3812eee6942bb62081c3b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.333-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.333-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 705498df1939b148b1b72ba7b2c193c68120a98fde9883b9269ad070d47050e1
MD5 876372e040a0055419ff6c592ee52aa4
BLAKE2b-256 57f71d2bcbe16ee48baa4f2745730e06ace2dba960680cdb647f76aad9136ca5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98e812701747b7b6de41f4eb99a802d873ccadeb0b4822022b322e3f2a1b08db
MD5 2fc524a92ccecbaf65f1787d6afe6bce
BLAKE2b-256 0fe70db6ad3f63483579e518f96b3db0a2ea1b5c798874233a2ca99eaa927944

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bfbb62c130dfae444a80c29e3a6e6d33da8fe02e90baad2020093a44f7bd3fd7
MD5 73d1ba042151e283ac42671149cbac39
BLAKE2b-256 5b3d2807947efef4646943cae0bc203e455b53b93934a6346d13280820d4318e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.333-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.333-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 992e452af98b23db74c3072b2062f5f497ec79e472900b0ce38fc1f7310d03fd
MD5 b93fd9db46de896d2e2c5999730a2b6e
BLAKE2b-256 a2f5caa1616f3f648acd4a8d3811ceb80509df0023372f49cc2bf34a872da7a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.333-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.333-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 061f6683b09f6f2e50aafbdfc0e82d7546f6a07640ae4a30c74a43cdf6300b18
MD5 81d0c498b9b3c2aba1bd3127b071291d
BLAKE2b-256 8d07b965705f358a9ee536a42f4ea177b99c28d5cb9d70b3a2dffe6a8dbcccec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30ca6b7e7202c8ef32e83e17530e2109accac43431f2c17ab54b588a2f8947db
MD5 843fd26ce934cd754e57d4f761788fe3
BLAKE2b-256 9403acbb03c347f39da2e7fb1f5b8f3e8006f0d5851eea6152f195d61e3815d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cc224a868b78c0553a42d0ab82b0c331b801dab4f1bbe92441aa5b5533ec830b
MD5 a1a0c1a5af6f5146c0697f6bdc8d1b1c
BLAKE2b-256 bd48dee8586697c42486ec89da20d2de8743d38a8a03817d40f8be01c8124c4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.333-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.333-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ede4ac36abbd0b1686f08f92aed3884c1504a703ac09165d8d80cedf8b8459fb
MD5 c908baaeb9cff0ea8f3f6bac7b56c4e7
BLAKE2b-256 d4f3ef5c5e34c9882e97e83ebf8895829e471a39172fed95ac8983925cdf3aaf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.333-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.333-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1662bb8d22d4b9852d2ff62bf39afaeb47203eae6ba93a01a102f862a35d262b
MD5 28d650581324fa4d801ebdf1ef26ba78
BLAKE2b-256 7b4e7090442803c8e5552b6674c078cea47d154cfdaa7aa08edbd15ad6b98874

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1e6cde874e94ad2a3f7b486f4138e417ff20a531a34a203c41e3fa94f708b47
MD5 ac04bf4a368199239290f720879d5b38
BLAKE2b-256 fbcf3942b1851b498a1237d1d977e12c1c7ab278c8b784df563bc2a3b82261f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.333-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.333-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 63f27dbb0cba919248914a03d4e917f52916d02782f11278eeba87208149c8ca
MD5 9d0011b779abe4d421373237d17e6e0f
BLAKE2b-256 8a2141cfddffc7425f3f2101d8a574fe7c55ba2160107490e45059a943c35dc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.333-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.333-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1517e7a36071838be0034b7acfaaab9bcccd3f22d0914408f55044b4d0ef1cb5
MD5 47615903ceaa5cee53f93eb8306febac
BLAKE2b-256 e511a344176ce51cf5141e1b7fd4846ceaa08b8f210ec0374ee858921bdf1b6c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.333-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.333-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0d745e1a7d6ef0944cd3c5090305178aa23e0aca3bdc34e2df3b60d984d97dc
MD5 b858603ef17571253aaaa19809e8881a
BLAKE2b-256 d48c0c9bd52f82d28342fc286d3802cbbef2d1c152b4a91e819957a4500b6524

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d10a29adf8d4d49256e9f6c889ca6fb656a13f28dc200e9ff89394a0e7d2c6a
MD5 b5ae1208946deabdb60e8a213e235908
BLAKE2b-256 e43c09adf24f16d9a3daa2f6b1f3b973bdfe41c5ee81d14f72e29e40c28b7c43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.333-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.333-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cdbd75a10ee7fb14b3efedf925a983f61f6c356b859b743c58bd55e6d3d93860
MD5 e14ab503b6ddaf3d8135768db2c86472
BLAKE2b-256 21b21e7bfa2ab44af124bcf1cc56dc32e993eb303b9f6159a93fa1b001fd1273

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.333-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.333-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d872b10493ed53c246763861a5a17758434c2a68ef45365fccc7b8aeaba953c5
MD5 1e9cb57befa55f55f244624759e9d6e0
BLAKE2b-256 de3e0e97f05864dec3ce7a815f4f707d257af54a7d96873fbaa13a732c6c11c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.333-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.333-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b44c917a9624c6f63ce3d677f9bebf0a935f59af8674d485c01e0a496f9d6801
MD5 9d93a9ce00a44c35ae62d09535bce2a3
BLAKE2b-256 8afd866526d7a956371eec452e3d45124d56743e514c9bb98a06c54499db4371

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.333-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36d86b8f74bd3a94e7e1d7f1d07c28b8bbee296b894c61648f5d7c77ad31f2b6
MD5 5b17c4adcb56ac44b61995d5f811563d
BLAKE2b-256 b8262b712be00e318b4e1d884d487273029a643ec078993e8ad8ea737d508f74

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