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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.474-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.474-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.474-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f16927e812d78ec278bc42191e998779425d9bc56496e110aa9e32be4e8c357b
MD5 a6400efb600f1672967ec7eca3a264f9
BLAKE2b-256 be96ea156ef1849abdf31d90d7611149afabb90419dad5faaca84545af467ff0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.474-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.474-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3d018e3e038181dd066685db1bd14b215d918fbd9ffc1dfbcf2ac59075a9ac2c
MD5 3834b98fe1213cf55c3ca598dac0c225
BLAKE2b-256 f26abc661e380a4479e77700293227e72c0f105298cb3f795724571fc195f834

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.474-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.474-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16d175588c2d6f6e36e05e1a82b11997d06c9bd23459590a1d34f5b86d873e24
MD5 c6c5ed56eb2ea03e2009c265032361d1
BLAKE2b-256 10c9920749b814a94a01cb3314736aa905f12f6a30ede522d3d120995a0547c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ba6db0278359e1d910ab23502303a776ac700f01ec63bd931ff223d2dfd0b49
MD5 25214ddaf557e5b51b8624156d53306d
BLAKE2b-256 f614b57a57bb38daf2a19da562bae29b3c9812fea1b9a3d4e289c75d908c85e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f069ca03c480920b3b46bef4d94aa1afd0fabb6003d0d242546d931abd95f73
MD5 56355e86a01e8afa976c562faf0a4475
BLAKE2b-256 f0a1f73a973de07da4b0df0ab7ad9d9d844c41a18714a640cf597fc8278b46eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.474-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.474-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8c75de100a5cad384c3468f6abc42ee8bdbdb05f54d64be1ae7c2c7c20d29d2e
MD5 ffc61f5607ce1bbf2b21d03b98141a2b
BLAKE2b-256 2dfefc96eee406400b21d05b5217b42264167c86e5402a5b9854b58d24ddfcb8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.474-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.474-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f41986fdf32662ab143e5aa6a9e9a3789f06b7166fedaf41c3cc359d6a0e53b6
MD5 d991370827744ee819dee5cfc62d5e43
BLAKE2b-256 b85e19889d7ec24b60f2d1b8bfac343d7010928f3a10d1ccfbe8672a9a761868

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e32853b6652900a82f45412436dfba707864f4a34d5e7282e20016a1029774c7
MD5 4dc915f994dc8d5c5215a63cb43c4986
BLAKE2b-256 5621f458bb035a256ce0e606cf8cdb262203febdcdb854b99aea599b6f80de00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e434014c9600ab8950b00635cb2f28f8c4ac8157c7e5ab9c2239b9bf8850f3e2
MD5 a66c4f845f3fce5459634c61a9ef6810
BLAKE2b-256 43e5617c41ea663fa6a65e51570edc4f8c89acc85795c6231459d69373581214

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.474-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.474-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 01546ca292c4ad372092ad0ea5bb77af249f8ee86df18b6cfe50e72dced50aa5
MD5 e27ee34d945c6ddf8bcc6713823645c8
BLAKE2b-256 00a69835b198d19b641f4f238aa2a645cea5af04fd60dc9a065fdca1cd992757

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.474-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.474-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 028765c3b507b4f5e779c1ed6392ad1a55692256c6419e00d8693b36b820b0bc
MD5 9e1ed59cbaef3bc4d4c036b95ba4d7ea
BLAKE2b-256 dd5980a1109e3ccf34375c680e78509e27db15780b893e923563cc08f3ea8a9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97be6cbd31a8b05ea6636ff206a68c001e4d69b2d37d1cb27787289663415eda
MD5 1142aaac9becef931ce90f884ab05d99
BLAKE2b-256 3f97c2fcd4ecfe65ac2e0f17b58097efed87ad5a4747eef0876e0c59b4f58bbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.474-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.474-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d11a17a0be1a889ccef9334a52f1f34a75b1d6b8140d766b8ab6bf328031cbb3
MD5 a3dbcc40d0cb94145a71dd621a75e220
BLAKE2b-256 57e1e61328e0f5a381d38e9f58478075561b9294ad3fd1d04daaf5d4215c7d1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.474-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.474-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ee4949668b2322abef761f2c2c8480f13ab0cc1a6600aa6658272f8de8fecb7c
MD5 40b9a02cd461820e482fa508cb0afd9d
BLAKE2b-256 bc201ce820b4230279ee7a42b5034ddb1cb26766da55ec36d825d877f8fef7ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.474-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.474-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ae08540fbc07ae3d3259bd77deca43cb62a588b7e1cb7618a963dd55b6bb286
MD5 2846e8adc00cc4231c79fed7bfa53ec2
BLAKE2b-256 439bda32ed1b005df58c3900f5745f30655729257ea85cf4c4fbae82bd22e8b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4948de10de85a28c82f6145df90028a4cd379a8f5fdf9a9ef1727634efac3f80
MD5 e982163b9b9333331e8adf8b243bd7ac
BLAKE2b-256 670ff7f25f87e3ed2f1de762cbbb968a9be12d5771e724a51cf574ec4adeaa5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.474-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.474-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c006bea5fb2efef22b5cf96f5f70866272eb7d56b2c6bac9672d23bdab49a538
MD5 0d8b137beb98905cc47898aa89a6dd20
BLAKE2b-256 b45e678415da2c058b9d17264ea91fbc05ee99a2da382a1858fac942e807f1b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.474-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.474-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 79233ca5cf2b28390167c14d9b7bc369221b62bd7f78506983bf4d2d012a4f65
MD5 300af8f898b1003b304b16aeb3d31971
BLAKE2b-256 02d20b509ae6215a887f74a20cfbe3d2f9d48692b06da8bdaa6e8823a2a5fb3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.474-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.474-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30269b16d4259f9c1d4aab4b60c9fab8b1aa032752e56284aabb4882461a70ba
MD5 d75a77d816e4f58d14646a158145b2c8
BLAKE2b-256 770777427748e60a26679d8ecafd7bee1d0a7f38353112695e86cceb449b346d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.474-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72a8a0b501007e1de8659a8be9622a68b5b3c78014f5a53b4c4aad530ffb95ca
MD5 adff63d637b45b8d88afcaeb1734532e
BLAKE2b-256 fa55cc0ea73cac6c503372f1d47ae698cc4e9b2f98648b3ebfc2370b77519418

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