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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.350-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.350-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.350-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5cfe50061eebb3aecde5942cd74f2150b9701e1d139edab483d5aa621876279c
MD5 b0cc732aa054dc4570ecf73a9064a3d8
BLAKE2b-256 78d0023e36075cfe5254cc931abed30383a86aec864ae422441fb0ff1551b702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.350-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.350-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5eff0b8c2ced60aefb2504d71e37f6819ec58273fccb4049056ebbdb57ab92f3
MD5 a854da58759fce7571cb505462e308ab
BLAKE2b-256 54a7dc6fa00af26cbf5b75f8879e4e5ba018a856d592622d77272d87244603e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.350-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.350-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 159bcd6fc5299e96b2304b5388c0156cac908f2fed474061edbd2e8505fe530f
MD5 eb585e7398855caf1764166031853166
BLAKE2b-256 f231b356ae3823b90c4a6715784313fc44e6634c8fd562df980612f270023a90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 178f4a53ece846886bac8d9b76a32716f1407256812883e8ec35e41b64032a6c
MD5 214bb436d3196b44bbc4ff05d4736a2d
BLAKE2b-256 985847cb54da8b8155a86fa4a02450788d1401bd6c85a01aa3c8590570e23816

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5049f3f90194c5ab65ca5a3899d185059d2e2142a82a16da8e06eede8c44a2be
MD5 8eba9acbbb3591a7110ab184d0c80323
BLAKE2b-256 75ce31be8b4faf64da428312562cdd9acb4a16415c0a8dd3eb082832dc965c28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.350-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.350-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 58c5d7beb1a00f975a3022b5fdb6f18f8b858950ad47dc0261e320b6de7992a8
MD5 b043d98627761cd5f519174da973e8f7
BLAKE2b-256 4d3f630facafc29b1e0e13b033c2e18f76934c23b7106642edaa34be1b3b5087

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.350-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.350-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3bfc0c48597789409eab83b7a6620626ed7e84364b2b0ea022092ef35c1ec8b4
MD5 12bf11236500c88c4bba6cc0c64f7ee9
BLAKE2b-256 63dc12d75699cc5ed02d0f0c1194e0db755979b6f806e6805983a831afcc8166

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c156f58d9f2dc43be3c65416b23ea2bc6b615908791be194276b688dac59e0ed
MD5 3309c9fb656a9fe3525e7481a933cd67
BLAKE2b-256 8c8a6a16a9049d8011cfa96a4e3d9fb70a2ac0a31e598a5506231a669d84dd84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 56bacf5a1ca7504b238b92cc4807bdaa0e1caa324d3fdc3823d2d2f818ef0485
MD5 4162ed28d7601f9d19d0ea927fe0ebca
BLAKE2b-256 ae74b99f54173b2e734f6a979279511bae388b0d4982f888a8e3cacf1875ceb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.350-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.350-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4bad2cf106450bdd08db3d8c18643b0ad032f921789a76d700f1e7b2ab057e6c
MD5 c3f6d71b1f93675336a7284ba8441d90
BLAKE2b-256 f6ebd1e75fcdd552267b4afce866898d619b4ea65624a8ce651d2ebf1d36bb4b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.350-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.350-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f121a148898d786e320ee6de459fd497da195c5127b2c241ff9195cadf2f5e8e
MD5 a30b106d027521e75254343d198556b7
BLAKE2b-256 7b8adcbf9d8ac550dc207dd2f7e1c767e902dd7908405548c5c5f0da1c94dc7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45708c2e5913e1cab9008eec9bfe6946a74283e23deb9f08bb4c4b4071d15872
MD5 d9703460fddea7e7d7365893c8966dc3
BLAKE2b-256 fd344b1670d4ea977393519541adba9fbe69c240b8b3446a92089a0e69c92066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.350-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.350-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0beb15a2702c611d49640f1567e894c336f496dfe6c4c2b09cd09663bc7f1f5a
MD5 417f6d1a874ece30189af827a878d020
BLAKE2b-256 b0f63b8dc959a1327c0fdeffa4e6158b1530f4018615aaeacad0d042e678266b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.350-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.350-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cdc78ae5ff102012c1fcfbbd21bc53cf961c6ec98bc1da0287566219b1f0401c
MD5 95316fcac7b6a7db6b319d074458471d
BLAKE2b-256 1fec9cee6242bbe70abdd84f6433df6f0b11d171a0c758325d4847565ff39970

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.350-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.350-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90dae7bc4636b38ddbe2ba7c9d6082815eae0a27efef7acc655c4d7e6f0b17fd
MD5 6181754a9b7982a355c6f06bddfc7102
BLAKE2b-256 b9425bf286880b8b91957f24aec70772253e549fe835f9f5c742bd923bfac529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aa31140a48ca70f854e2cee45d773b975ad59d3647b56536b122fda39e48210
MD5 c1a2510cb03ec6cfa09b308d2084bd42
BLAKE2b-256 7cf035e1d0be6e32600787b2af2d29e15a298767500768963ba500200be9554d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.350-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.350-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fa60246aed8c341b04843149f22064b5046ee2b79526e0126b0ef339468441b7
MD5 bf9997efde233fc3d9c73ed071f62229
BLAKE2b-256 7c1c42d3541dfd6607f44470fa969b35f6fa9680964527c942d31305c6820615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.350-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.350-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 46c87f331ff3e69e0ebf81dc797c031c239fddf206dc5192bbb3c2b2fa172591
MD5 7120d091f533b16544d860e4b1ef4274
BLAKE2b-256 bb75c2aec6b12c65b989ae5b6c26cd5427bcb45c3b49dee5606dae96be3c081d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.350-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.350-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa23f28b203798e49d71e2f51019c00da5513fffb8e1c4e3b21d04f5640bc1c3
MD5 3a6eabcbba2e4c41101a2969981a411b
BLAKE2b-256 7afc86c89e8e821a27c7f34b739c58cccd16e5987c62ff53007aca216e37b30c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.350-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1b2b782b58db3949ce7c626ad6a46ecfec36fc93e11f0ffb71c2b02eb52bb35
MD5 518b3f0758c3c10f61044c5c6adc100d
BLAKE2b-256 36ac46c01d3479b242323e14c56ff6a531bbd4f883e9c9018b77e268e730db5d

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