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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.332-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.332-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.332-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ca6b9edf19bada37450ef58b69ccabc6a12915b35722ec91c84378ad5e1d6d41
MD5 ee9634eb1407b45afc762f34a2432b99
BLAKE2b-256 56ebd232c1b9c702c94acf9bfe8ab8c1ebea0475680d3003e829f4425b475e19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.332-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.332-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 da9f0e9deddfe13515b5150472fed3051d71c03fbfa77a9560fef41406fcde1f
MD5 a3d35b16c95fb6c5a551f94bfe756837
BLAKE2b-256 89aede1dfdb3a1c0e249fd42123fb1f73cc77478aa0d2eed34043c4c1c80543b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.332-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.332-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f41528eb206c19d48f96fed489cddf90e5a31aa9607cbd028919d0f6b9fce29
MD5 4ab0721bdf501d77e67ff40fe0842b8a
BLAKE2b-256 f1d5d39752d8077df427530c60f46892d2ab5c3aac0e6391ef88d6373ee887a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23b88b87625ac5d6a8b1bcb9d39196e6622db03f51893b8fd43c9c9a9adb2ae9
MD5 fdb4533c9c9871ba9346d33b4eb190ac
BLAKE2b-256 76cd74057cc9df09e4bbcaa4e26dce5f7b907d39947bf941b2c20e3fff8f2878

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dc0dc9cc723da8e5d13e0045172556fd6cc61007ea3e6a5ab22ce05e2639a57e
MD5 f31b75287992036d3d275b21ee972968
BLAKE2b-256 bfb9676c637bddd30125b569c9457ef7adc6831d9c0ca2f3bdb83724cbd311de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.332-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.332-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ca9247d22f649bab9eaa1a12cd4079b4685722d7b7af1fbc7051d694f9f3cff8
MD5 89f2c5e674e2fca22a495217337a8464
BLAKE2b-256 63cc27b3906cde570786034d6b8dc518f2e7b942bc604861504bb27510db83de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.332-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.332-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1765764b71c661e0d3bb687b98bb0c3f717885caf4f19447e642ae54c2a09b4
MD5 ed2f6c1d3797cc6d53122f5d0d10a378
BLAKE2b-256 1d45907f81715ac86f2405530aa73edc78f6b33175ac8b923df101d1f691c532

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9915a5a5f30e58d5a05bf22493d1acfebadb641e7094ddbe62efcafa403dd692
MD5 935f2d4fa14a4520582ac7b901dd8905
BLAKE2b-256 e1ef6b48b8835c0a25e03e8bfa5e10f0833e556e06f947c7b79b15806256be37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4bb42a3c0b436223c8e29f88b6c683b3db87efdd4a99a035bcfa7b7fca32c869
MD5 2f6ce0e53510829681a7cd8ba8a2736c
BLAKE2b-256 27859722dea2126ac2a9fa0f09110484ee5b03ae05794bb67437557a93e05c8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.332-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.332-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 29962e4c9b7ca4620371423f972bd8d75a117202822b83ab60dd0ef1b0ff8a95
MD5 39bff74ef3c5f81ee23f27656cd36afc
BLAKE2b-256 508f2e17b84f0d7eb83e5dfb1f480662c0f32ae4367a5928f5227c5801998d84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.332-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.332-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db75c8081ea8023188ee4f6bdb029e81106571175cb6265ec792d62129e9af5f
MD5 30fa087f0e6c58f58a4d43e70616f8c4
BLAKE2b-256 18dd568ee5398e0f4563ef8ee07897be9f0445fa4db82fa73b9ab6431bb38fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0848fe2feadafdd3dee1cb71b2a5584e37823b72334e756f95834388f91dd373
MD5 ef9aa9ba95c3be39b7069edcad3c65b6
BLAKE2b-256 b9cf2a88dcecd964b80c055d51ddbb87dccab910d0be8621f475b787e217b562

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.332-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.332-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7d69276d5997f96c0defff091b5b2faf4f581d4267e9fc25ce83da3596818595
MD5 80a34eca897cd4c794555d7d87cf8fc7
BLAKE2b-256 c9a6f8c6d0941db2b02dbab58ddfde99bea69ca271f6dd8c3f3a00e18e243268

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.332-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.332-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 09a425a7e61b3da61ec5294cd801569b951d05b7db5fddbfe41407b9d1b5a6cf
MD5 58634ece991247e9053bd1b8d5b1f3aa
BLAKE2b-256 5b5227472fbe040d6f57533832d88f7d3949938e96a5780ef9e5bcfb54577d2b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.332-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.332-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93c5e7082dd6e21eec6c7701660d765de2a0fefffa0901a48af44e87356a7f16
MD5 1d0ff8a84867b91a7208148753b01559
BLAKE2b-256 4a7b9f80e8069788ae22b11cd96af3ed0f2a3c0f25c9b68ad1327ac35ca4e461

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85820fc7ecdf175a82815d2dfdd2a31defff314e67e4f66b518c75a1bee72c51
MD5 50dc142164b8cdcc2f0c6ad645674573
BLAKE2b-256 1486195c4cc2ac6179dac78c84e013da33b344df41051f44f3785ab5b3db730b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.332-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.332-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 808e9a56f93767dd648b24cbb768a141d6a84774e3bdff4b237f76e4d9f12156
MD5 ff8a6e7770053d355c3b0e60efbc0326
BLAKE2b-256 8cc77316551b491b1068e90a5b7f96035d60d3da66ce47dd665987daf020544d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.332-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.332-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7b09b3c06a8d326f82e34790b117458e684a1b626e7b96852496005546512f3a
MD5 9181bc0eb3735dd2d1a17a092f4389e7
BLAKE2b-256 a0f252c7315086f264f5046c765f9f94189451bd3948406e08fe14f4bd6b4d79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.332-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.332-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5858081ab50096ac6aced28cfb1c8a5ae27f90d3402e2c5acbd904ebc4c8016
MD5 479f4c0b1fa73145e183a9a87404ef22
BLAKE2b-256 08cfff5f17a6bf1fe785d36e0aafce2d0e7a3a94363488eb978192948f52fa67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.332-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e7e4b9bf67671d0fd59a7588610a96c74ba6eaf58e6ea78598e1a410d45dbb4
MD5 b2b8a0434b8f81a0a52f0b5378deccb4
BLAKE2b-256 6f0e1eb816e25352fbbdbe3e0a331c4806ea3a0ba3a957de967f6c926d082c38

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