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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.18-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.18-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.18-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.18-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.18-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.18-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.18-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.18-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.18-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.18-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.18-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2eb70c14982d6ea1cba081fec85cec9098b4eec8f7bb5b0579685881d62e854a
MD5 129407d4705b398838e65b7fc7f8ab37
BLAKE2b-256 d4d391e447ecc3ce1a0a37764ad620eb2891501283e99130a7e7f8f3d362d6e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 93d3d2fd9695549d92e63cefeeaf815ca791ac12f4a2600ac05dd186ca04e7db
MD5 595585966bce63e4e8644d06b24ad6e1
BLAKE2b-256 ffbf1336de71d8a2e9a8a3257d1c040bb3416bd68bd94a6a899bd6533df75b94

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.18-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.18-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f62e703df5a2893b78f84ee3c7955ce8309f73ebfbf268841bcd8f48c8e5f23a
MD5 5d22d4c36a0823a4d917511f9fa2a5a4
BLAKE2b-256 d430208402d7446d7f107a4de56d16ea4148acb160985f10d2c510ed7d91bae6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f2bc86d075bbde0b7af31c961ba90df7d828b1e50f1b598a572067116ee33ec
MD5 c0131452f107baa7108c5ea5d1305b2a
BLAKE2b-256 095a5b35a43fc3ecd54446cc057a9ffd1ab5afcea49490fabc4820454cc9b6ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 186ac48b2d1f0e4892e615b4348a0022e6ba21842f9e09d02c70cee3fd07da1f
MD5 5b3d39e68fa5c85b1651dd212e55b1f5
BLAKE2b-256 d819a358b8ed8b5790149876fc8b13fd5a72b7f8aaf096ba9c95bc1601d18421

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5a8b486cc88672581d09abc7ecf6060eceaba2732aa500dfaf0f6aaacaead0ce
MD5 84f38e31f5a8ae8681b52f14c65c6c7e
BLAKE2b-256 acd221c92e890968522c7507ac38739ec04112172eaaf7b68a0f9081ef589954

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.18-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.18-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3787872e0996a97df411696336adf1150f5b52e528f1e14e6ad10f09b6d3d6c
MD5 d0b198e5dc844ff4b464fe5098e41dfc
BLAKE2b-256 404175599b8369d8993989b88e29d653b1bc78cdaa98e31f6e7a258872a0d8d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.18-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb9af2d253aa1112ec6515ffd88f09e1c6a8447c32e58d8718baf3ffd9976797
MD5 72d4906edfc462fb5dd36b51be9c5ff8
BLAKE2b-256 67395543cf7c933d740741d5e3afc4bff5fd5741dd63751f6366065aed120602

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1e14b45f215f2364f4bbb62ce4bc3861bcc7516ad10b5bcb2dcfa36194fb11c2
MD5 89aa9d450f659aa6920901a351e24ebd
BLAKE2b-256 9d0283ae79c49e320b87d93035a6fe063a00bb7cec210e3c4d54e06a2272a3a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3e34afbcdc225a059e4988e4425a908f7c7b74f61996f1d2085ca278836efa2b
MD5 fadcafa97c2f78360b40c0f39ceaac41
BLAKE2b-256 060cc30bc048fd7196d7a363d07f0a68e606770498a1b4d6f48ab16ea944d06d

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.18-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.18-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 782ebaf306d34a98e83edcb327600436e8a58b192ffbfb4ba5699858672bd077
MD5 d200090055beb6dfeafd505c6a549b40
BLAKE2b-256 1c1745a495f0bd272284e040fb5f66174872307efc754c80383aa611f1dbea24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.18-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bcbffe05b1fde8760779768d7421856ffb506cdbaa16410cf4816b42ed34c5e0
MD5 968da60729d8b88c6d41b985031ee939
BLAKE2b-256 a79af825fafea980db91b1a1e647a8f1cc4fbf39d01ef0faa01e5cb17456a0a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dc19e910a1de58fbadf3aa8440498faa5865fd94787ad706c4b0b4829a607167
MD5 b322924094b587409f2e3293be1d5fdb
BLAKE2b-256 d6e5390a6b37556fe7481b5e0c5489b6291cbadb2c9b4ffab452690fa7c1b6a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 162825ed4c596d00559dbbad85a4f9907b03e5db61d3d4a5e1d73b86bafa09c7
MD5 d09b504e7ca948abbc89735f93f4a897
BLAKE2b-256 0606ebd6b0e641739d1ab1f65d66a9473c0d942d622ab9231f9e35893918c8fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.18-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.18-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9862988ac40647a3c46599a69cd6d37a68f4e893e5671b70c2b1612741a33d1
MD5 ba1eb42475217288d2c1d41e1ffe135b
BLAKE2b-256 fa1c3ae43bb18601f6cf7f164e2c45c32825041fd772b8013036d53094782c54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.18-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 193d61de75d27bcfcdaeacf12bf13379b2a2fa2e9fb9b7420faad448b53a3342
MD5 8f62498de8c2cff74939e0dea88e7916
BLAKE2b-256 5b4f83a57c4d7bab2c0d7d58497c38b14f2fbde62262e59617a9687e78d5f05c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c1d292e5a00bf6b871540def3d15b82cfeb3ab977bf97a15094454dd0f8d7f8a
MD5 f53ac5c1d42d34d31b6edf57ab92e8bd
BLAKE2b-256 e7f7511da8035844c304f56de8d0df9a013979cff8c0d4863815e8ffb1f3323f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.18-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.18-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a46aae79774382c0b39f431e24fa24e5c2d8765ff50e5f0db4fd641f106dce5f
MD5 047514266985ae6b07005ac2b2f45677
BLAKE2b-256 36e3c92308ec60e4e7d87417371f1ef8c9cfff642529dc377edeca79328f4c74

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.18-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.18-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7b6e5cc592ecf6fd5321198c78c72c9199467de683d82426bee7e9e5d21469c
MD5 b8528a13d8b35a92b6d04d8c6df1240a
BLAKE2b-256 168a27f97088f3bf38f21d5059f60aa0db9ea3d5a0105a881019ea1082a830be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.18-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d57425f2d75a3bd91cf0786f8c4f45083ca27e4e882a215b0736534dd95bc96e
MD5 959dbdf36be18ae7757432e0d07eeb0e
BLAKE2b-256 7835b479a333272495bd223e650ecbbb75690f704da4a5e2a957e2762334e9bb

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