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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.111-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.111-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.111-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a55b4468335c62648b3bd6111f5e2b4e45c5caf9987c0be9c4914a6a7dcc71df
MD5 1e01134d9203bc10e14177d8057163a2
BLAKE2b-256 5d80469c518424d7352d2bce90ea7bb7a8ebd2dc14d2481209d3de80f3ba1827

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.111-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.111-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1efe7f70244563f449169b800c0a998bcf339f39e11d60daefdeeb4a1ae3f587
MD5 09c8dee9669649b7f83ce5f3a0f05837
BLAKE2b-256 b4cf64559ae6bb6428d6dd58ef3f6e601e8f47f197953154cef9d5649d257964

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.111-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.111-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d87b3cab9d30649c3b66e7a7ede61e73e389b6c1dfe73ba66e2bd9bf4d4d2751
MD5 6d870de4835939f0d8c5f4d4cc94727e
BLAKE2b-256 0dca76fee3f95066dc91d92225d3b095fa55f8789feaf3a096eaa31d9d04ed9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ec7c0fe0398540d43fc6c0d422c2e090df519c0a275ff89bf1fc0f160615945
MD5 3a840420f7751fd30fee02be13390aad
BLAKE2b-256 5f2501dbaa4e3e938e36f48222762c49601fc385c0e289a790cdcffb6b7ad168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 78cae1c7c379135d0908f1064d52c0b6182da7288974bfa3084261a9d5269fa5
MD5 c1a2c799b144f0d4a2abce6d160bed72
BLAKE2b-256 a31dce1be1bacab730690784a32cbbffd87e3a2199dd4505b4bec42dac778729

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.111-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.111-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dd0c41911bf02572ae205cba53abe9f8ae4b48128227543419e76419d5ec54b3
MD5 b9feeeaf7dbba73836db7d3bf973f59d
BLAKE2b-256 25e001f5f483d367d6c4b4422b513a48c817fb06e7394fab9e2e7cdc95812608

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.111-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.111-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8830637a0535e76722d3ac07975d4caac6a3abe62f6c45da20350f87293a8d2
MD5 5e3b22ee023644ae6ca790003576b59d
BLAKE2b-256 0e011666d57cb44dc0bea682d8ad400dc9a7007790ff21d88994649f7d13e054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c78303287cb0d12806905a869d436dc266d828c9645e557624bd56ee729ee00
MD5 5bda58bf8f85a8709f94c02d09e6a08a
BLAKE2b-256 ee2cc4bd5602662d2709a639d68f42b407ed1efeb9aac7b902562a5ed3c72106

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c9656ebc8321adb530ea865ff20f3b5b1d28a2d01c61fef1be36ee5cdbe3fea5
MD5 7fc1589dbca7e5811d1312e72044d7da
BLAKE2b-256 8751e7fa32a749702cd15ff67ee34a0c0eecdabc31c6ce70cdcf28670c8b4c1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.111-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.111-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 63148d8a632c9a02aedf99b89fe44204b4e47001e61e71a4b0d06f5818c5885a
MD5 9184258083f74c664c2235fa9d1ec646
BLAKE2b-256 e26c9ddb74236895da7abb622b57fa162747f5d25e22099ced85f06eb3a9ad8b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.111-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.111-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f4d39fc2124717a4e80ad7b002a5441fc31aa0a196e55eadc61ab5f06170f2b
MD5 c844ea6774d13d8130091ce0817ed04d
BLAKE2b-256 4283d47403673f1178037e8117b88c28f0d7b4390a1d06cf9daeb468acb8e1ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c65761b77c24b5e89a7cd8bc3e19059d3d872c2190a1369b124ee0ea28916245
MD5 10aa660f34e829a89aa3c937b0d4e7f2
BLAKE2b-256 bd2aff5c48faca53542300df1a94911470f044ed9f89690ac57043df9c66f581

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.111-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.111-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 21ecdb1730011b5d9be6abb5de87d46f17a1f75fd768e2da455ea0610d549686
MD5 3ae6ed63fa3735b154686d1657f7f41b
BLAKE2b-256 d95324c385fb201f796672b80b2078652eac7480751d4b6c371b579e62611fb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.111-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.111-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f7d270a5a45185977fb9679f2338d7f78cd680bd67bbea25523218351f12b2e4
MD5 442bf411b4c0683a7cdd61b4f65b298c
BLAKE2b-256 bbe47ccb8751a97c06f98b48d59ab3c74aa32442bc844d0c613ac60a34e205a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.111-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.111-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0436c762ef310adcc25f64ccb9eecaeb022a551fb20f8860e4b2c269c29017b7
MD5 17d15b5f69ac5c430cc94527cb29799e
BLAKE2b-256 7ef5cf4ac1cc1eb59e6d48455c10eed68db2590245c53c124b7f8d4bb46a95ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4b4f5f58a7e9738cf65e4621994362c05911eaf2ff190e78d7a75ab6456e701
MD5 c006f11870a643dece280aac139f70ce
BLAKE2b-256 5a84583a7ef5e0091dce2fadc955f210fcda65257532cd35dce178c136767e2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.111-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.111-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f2b2e9e31910ffb80b05f12971ed73e91c0363a60132e2b7fcb907778c7500ad
MD5 3248286a1f381c42cd4f0780387a37d5
BLAKE2b-256 fdf1bb37111f47e6fda1ddad87d31f7d39ddc674163186a3ba49eba357c88902

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.111-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.111-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2ebfabd91fef5a365ee5cc46ce0b7cae2359e97a32035a2045fc8cf680b8e6f8
MD5 53865520966667446eb4f70787e74ca1
BLAKE2b-256 81bb27a2c97bc6d0f16021243a2cb010b3b64a126c9e4ea8760128f55907e217

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.111-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.111-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0db9c43df255e9c9872dd6414e348362ce95bd566dbe5ca6efe1579e3b245cc
MD5 92dbbddc531444774a869ecf2605ff27
BLAKE2b-256 0347924ccfaff79e79385fca4f07b5ee73a3618f9a92b5d233f4cc2243f28b70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.111-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0760ae339a8dec46fbd03827fcbdf680302d886f7858fd6b6b6dc13956ae512
MD5 678bb7ef8f53e1d37b7c32871e23d4ec
BLAKE2b-256 18b6ca173626cb6968d685ee447c4d6560dbd58d1395dbb913f142254cbcc5e5

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