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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.536-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.536-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.536-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8c5506820d04cea9ca6c0785d714551a758c7defa7b114b784306b7aa76ca441
MD5 da867f7b03ac84b6989bb3fbfce88e76
BLAKE2b-256 49099e64f7a72dff36c3c19d75e38de36f291ee9984a9555c3cb3a332c6fed55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.536-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.536-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6ad2fa097944826236f0a7241260828245aea5b1b2ff46e9b040d200fd3263a9
MD5 2ad0655f7f97b3a9e266bebf7e9a17ae
BLAKE2b-256 6ef5b9567cb919fe406dc425ee0b0f4b0a1594c9928c2e2c68d18e913a7a3508

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.536-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.536-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e75a06cd12f30e72b8a9e1a394a306f751c4d191019a15dd66e766fd8c08a821
MD5 abb74226da98900093441dba94e0e03c
BLAKE2b-256 cd7d02ffbad5dc0f5c98d45f69b6c05c1ec369759d1bda0092454f0372dc1c15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 578d6a4eca98964bcd47941b42c1af29ae5e631ce65da2aee69260b64880a7b0
MD5 0d544c6a307667ae817295154ae4b019
BLAKE2b-256 c8c5f62a6e6d062b3663b0b3839042079d43e19dbe1fc1f4bbaa973decd11b16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4525f8f1b36bcd2e903a3b592ef3d50909a60bada114aca5fd80fbaf8a822aab
MD5 0cd650e2478339359c092f1b86d070cb
BLAKE2b-256 b8aedaf75dba0c326d5faead629a5837bcfe6c8e0e7b9794f8b3fb5ab8b3c81d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.536-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.536-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 05e454c42b67eb59a2471e9de9ba2cc715eca99f558a0cfa1e970bd3910650b7
MD5 29a310c5dd9ca2ba3fd32a574d9510a9
BLAKE2b-256 85c197363fa9eddec49d1a39f630277a6a249916ad6a135786a1ff84abfa3277

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.536-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.536-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b0c81174b40dddfffa2bc5666155a2df9ccff93b97f4eec370af27a11f9e5b4
MD5 b0df6979a70d405956df4fc2cbd19228
BLAKE2b-256 35318f23de7f5a657a4714c6bf3550b00235362c3ba28d5c6b2bc2722eabbdf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15d7aac858ff3f6403f9a3ad5974dbc832cb14701fe39c030327f5cf2c2f3da0
MD5 a7430309fac2b6b691f4535861d4933b
BLAKE2b-256 c0ac5e51d349c4438b5dbd76bdc10c39e9ac4fbc52f9907eae0a9fdc4492bd42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d990a50b92c6bef2815e372b671ccf182d7fefa6a96b41423d21efc155863fd
MD5 7d6cfe51a9ddb3d36d28960a61d59855
BLAKE2b-256 6472ff648b3500165e1a3b4a2be61089c55c806070b38cafdf35f9dbf91ba5d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.536-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.536-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2adc15d41e3b022e6cb1b1e6a8ec2ba86a02ad944b9d8baf4f0deaa52bb7c23f
MD5 c03236d618115ba2420ad8bfcb361483
BLAKE2b-256 d45a6bcc9059548c373d187aa6d96e928bd7e768ce8946c0e92efc8f541ee839

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.536-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.536-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1915f57fbca252188a63c55f94e439fb4413ab2fa0a69f73b79e051374bd4fb8
MD5 029a20be6e672a30972f00527a4c7093
BLAKE2b-256 c821bfc07d66526de4c26d2c6e4900fcaa08f4e00edc96b59138ad0016fe4f43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33bfc030a020dc9256dd5fda29148f51c33b0224493c152257f58eb965fe7077
MD5 eff32b6db3cc2707726a753245fec47c
BLAKE2b-256 441ca792d3619048caf4557637293bf71a20007aa207fd4b9c686d4b906fffc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.536-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.536-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f054e740bdce1ba4f52a83a945a7fc14ef538b949a0616110f4741b3ec0b2eac
MD5 d37ac6c69dc3003fa15e6f61c763ddde
BLAKE2b-256 3fcf704644e637a73b3f932273754ccf767a5d2f37ecbb8c1a9b2e6b6f4f3fef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.536-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.536-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3d0ec9f51affdf798772508631653231d45abdc55a6bd0ce1fac89f6739022ab
MD5 39c12e6c6c871ab5e0cec324517a4ca4
BLAKE2b-256 09f118e3d77cf181077b14cac1674a3debe766ea876c41a3682322fa7c1e4ad4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.536-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.536-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 13432f3de6ffa44c05855a4d9e1d27b6bb05c1b2a3b6c87592187231dc7ad2bb
MD5 d5af7c6c6490843e79bc312552bea7f4
BLAKE2b-256 100b0e468e986736e873ae9b665df3037ca88e706c7bb7bd1b576b18674ee727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ba4fa80a7afc23a7130d978417b7e6033db336be71983a5af68d1d1000fdf41
MD5 e6fe33038dc582aa7b581bbfc67778ee
BLAKE2b-256 bd2d74ba461449960e8fc743258f66f653fbb688cf0ee902618735fa401c2ae2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.536-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.536-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7e74bd1cc9542b487b6a3cc305901550bc9107c8af748f06de87db479326bd60
MD5 ad2120424c4d5b2f3bc573354d6f6d56
BLAKE2b-256 91d9925ca09b9f8ebf0f2091f58c33fec36e6ccfbb72fd710c76845d5214decc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.536-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.536-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c23690e6633ca0fc86d43c1e83bf215d059bb7cc7304c752471c5e501fc40445
MD5 7f157e1f462aaecabaa77fb06053f552
BLAKE2b-256 41a4358a19137adeb0cad1acc48333be949399f5876fd67d186385282f76b0c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.536-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.536-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d952b2772bc10ec56c0850833eb26b41acac1c9ce79135e0b94a87cf21066aee
MD5 99baa466b48336d5d2fe5a54024f2c57
BLAKE2b-256 ef8d472a033765a89ca63da415de6e942aac2381da12ced2bb68c76d961565d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.536-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6aae33d7e81c8aba291634c4963dbc7a9b0b41c2056b71cd198a496e8ea53f8
MD5 c9888851202f5578d809c4bf330c0526
BLAKE2b-256 d6a57cdc78fa44ae7623b30464d2f2c97f87ecff78bfbb529b488efc8a29aba8

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