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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.798-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.798-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.798-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5243b533549429511f1a4a2e2702a2a5ac2a510ac472ec5bc544fe5f3398e9c6
MD5 a85087ea3b3f273a010f2744071d5152
BLAKE2b-256 1ae021a457ee107487cb03b501efaabf213ad665cd4094d63b648ec24ef1295c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.798-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.798-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5db31c1a194767f99eff7852c58464a15c9b44bf0c826f167ff78d2ae67ff5f6
MD5 f717c2772e644937dc91a87deaafe3d1
BLAKE2b-256 d236dbd8e3fcd1a2d9ffdf958e27b82141649f52a122a4f9680abc95ccd42204

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.798-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.798-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a55c2d961dfe781ce2caaf7dcdc6a6367dcc06d5dd6a74bd8cfa79d7089c48d
MD5 a0bdb550c8d235183fb6f0c6e62333ba
BLAKE2b-256 b07ccaf6efbb5344ae71665fca62d9d22eaec274668998afa5a67a2ad228946f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5ed2308b4ca91402938d66dd5b84aab7daef0c7e1986fe90a16c76278af296c
MD5 a6db95075bdc7006cf647f0713151ae1
BLAKE2b-256 b61d90137ec76e4067dfdfd15fbc94c03aaa831826244c8c6d638a2b5414927d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6d5d68e732445873cf091488c9edd3c03e545da72b73c28a79cc1eccffa07c9d
MD5 6f1f36e76a810aee81d7249a0fc58417
BLAKE2b-256 ad8d2ea59392050fc962467c947cdfd4369d33741f195528589343a9b85e473d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.798-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.798-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 32cc6f4974e6637969f788a140b862b421370f528ef811a57c8e18c5f42b6f9f
MD5 82d64c90a8d523812d3a114eb86d2f10
BLAKE2b-256 146d8ac774c045b8d5fa894ee77482ba3afea5a5f48834ee490225c9806d65e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.798-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.798-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67d896e5344236afb9592897af55e33078a4fba9b8bfe7fb1ef6de5adfdb0700
MD5 9d056d86711fd0b28b96f68c817aea82
BLAKE2b-256 9d9ec2dd03c1751fed35ccd595cbcc9a1abb639024a753578079d718427df0f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53425ab53684b0796426f4656ff1c3d99cfa478aa43f0f39a85858497331c077
MD5 d5e135bed1a3b30b4692cb5ee5d4b7e1
BLAKE2b-256 43b539691817624a3e3b087431fd49eab28e8a172475b487129ddf31aa6158bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 073b1dcdfc9e12d78b23e843a4031cdc8dd63275047e8b2c8ff7ca05dc71ec59
MD5 1e326c7277bfc72c6dd4bc4af2aa17de
BLAKE2b-256 144447e5e74f2d0208182785aa7219b56499babb791beb135cbbd01fd2979023

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.798-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.798-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0c281df81ba91f543c13c3490046f8c2947472c5a2e2505a842c0ac6834c7b2c
MD5 4d6f3c23c8bd95210bb10d2fa05fb077
BLAKE2b-256 3d8e528088813d3ffd762cb7c54a0b91619552f5cf643ee09947b502a17ad3d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.798-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.798-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 668f349d5c591752abf4722e0651d7d64bc681701e7a54b39096aaa0a599d454
MD5 24b4ca12956d3410225f573207a6c0b1
BLAKE2b-256 1d8f3b6494a159d619c5a9797fc8d246076091c4a48d09a0514b754c72f8682f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ac456f1767ef5ad660edaf2b306705ddac14edb66b47004387bd6b6998f5edc
MD5 5aa476e3d4ad6c758d15162c7d3b0d79
BLAKE2b-256 e49284cd99e9d3a72a288560b50a1f11bfb082afd9eb62c9f3319914f49e8338

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.798-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.798-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3dcbc50555cc560fa9b4030b64a0a9d49a239d01e71e2ea67e0397d46fb183dd
MD5 c10237b9cd78e256ad2171896fbc381a
BLAKE2b-256 da6ced11af5ed57ece099ab85711c49f9d9444363b6f4309307d21da6414a6ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.798-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.798-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1418e1bfff3248b0ef3e5014e4646629d84fc6622ba9798c038b35c97ad7c868
MD5 1fa584526180ac07a6df918bc6c627de
BLAKE2b-256 50d3b53e2ac98dd9972d2587f53dfbfbdccd58c5541812eec010834451ffc2e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.798-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.798-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb532fbdac6e1d4434118192eefbeb5a9d664c449ac944248bc832ccbd31f2e9
MD5 e0b42449cba2d1ce1dbf80ccd69d893d
BLAKE2b-256 1c722ff9b8cb5a1d633f287ca2bda82ed61dec6008996b84453543ecfbf16a35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8040637b6f4f693c3733141f779a479a72cd36d43748e5239f9d896139f2f5d3
MD5 2844803d20696315cbe0001c775ffa2b
BLAKE2b-256 3689aa3092c51561da305b629010132f46a9aaeff61af42e2402eda302ac4654

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.798-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.798-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cafcf602a59954e52d5ad53b9240bfd29a8d39aa06f62f25fdf72f09d9cf1b66
MD5 3df546f291b2448873f3ce30467cda39
BLAKE2b-256 7c37c98516bb0a721badd52b231befa2bdbbb990d47dbdc0f1e742ef2e381fa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.798-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.798-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 946f5f6243c34b115c2a73d5cbf06bfec143b8ba65871a64d900eb5e80922c86
MD5 369eaee9683c9b7129840955fb8958f6
BLAKE2b-256 680cb13354acaf0f86d073084afe87eb72b50a7ca3b9bf557031749883ce6ddf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.798-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.798-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a675f9cd206e5b51d7b6209f9cf36b662483ce728ac1fc830178c51dc0e65abc
MD5 aec691061c095a617af62e418b12b35b
BLAKE2b-256 a139bf98dca437900d64aa1afc70e3007ceb7da99f8b9b2c0da5eaf9c8a641ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.798-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aaaf80219118784003c28e2a3e8949c5786e1f074005664480f0651ccffcff9a
MD5 3b9f970c3e807a3b0305920a9b6908c7
BLAKE2b-256 8167e7b7dc0c367b39b56651c58095df004901a5a2b8c5f48ff82e212a042d87

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