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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.286-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.286-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.286-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5e04b253e240f9ac089123ec471d5075d1bdefb443f999098e058bd805f9ce1b
MD5 7dc064aea1ee7ad66217e4df8d33c4a9
BLAKE2b-256 3c3df68d205e54182ea711320c0909f8e5e6cb4badae6732328f1a7a0c9c1cb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.286-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.286-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9dfb978b37582ac74dbf2ed2a0e67c03904e6314e952cdd708d61f1861c1fbb7
MD5 7a0dbc010b50a2b917cc3e8d52f2c030
BLAKE2b-256 23af656e3eb0ffa638e68e2695950a8b3fe32fa9dc6ea516697a06d4bd55798d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.286-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.286-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c196d7463296ae65f6686d051f63e3e4591992a5c090e8cdd048aa39c3f540ae
MD5 59cb25b85c6df150f87926a7d2802531
BLAKE2b-256 c6183f9c5af06a0109ac2b71e8a3090590efc7965d8a8f9c52e56fe2e9b26aea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c898f66e3254df0b481f99bd332ad8af6472367d1995080654048cab8c2913d8
MD5 b5183058162fb215bb4d6fd1e446b0ac
BLAKE2b-256 9a03504dd35113544ba526bf52d4b5e670e57cf1a3eba1845f49d17da8e21238

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2311b1e5974917549de6fe29880c0f9bcb790e56daaca27fad9c1b58756873a7
MD5 c870fcf5cc4ca34e942bd676eef3db6d
BLAKE2b-256 32bb44de8a1ae765a69b255ca1d249b66cdbd649bba3e61b8e8f4795d94dbabf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.286-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.286-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bd21ce13b622884a9357d64f644ff9cd6406be4012d4024d2f89970d0362640b
MD5 03bc0cbb1376cacee64b754d740bd5e6
BLAKE2b-256 7cab9c2b9e75e512f4f988e8faa5e3c5fab586e696ce1c817170cada5393453a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.286-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.286-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4bc32aa7ed3464a756324c8e6a7e6c34fa60171713c8fc4d38fc90f87542651a
MD5 b4f28ecd967e64f0dc05ccb2fc3fca33
BLAKE2b-256 2907ba36bba00b3c5af7ba47585e1a7a1d61de852d7e678227ecb2cf94027562

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 898e34970ee7d9d829b811b78b0ede2360478bcf69d7af39af99f4c419eac587
MD5 4cd4f96c42776aa15dd835d344b87c47
BLAKE2b-256 da42ae6fedcd2a18c7aeffbdc8a16ab7409dbfbdad83e665ff1af5ac1f671365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 54e548bbaf5fae6a55d21502360abf9b842a45fee93ab23fdfc5a9c2a164c70e
MD5 c98f248565cf6168432d50bce3ab9a24
BLAKE2b-256 5f8bc4e1b6759c22d38d3b7a739f4acd71b79b54a7949ba94e9c1a3a22bf54d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.286-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.286-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ea906f1799b5e6b428cda8cc4bd616f2bc2f21f3b11096fa51ee6edc72979218
MD5 ed51755dfcc7fdc929aa2f76b0c3cb88
BLAKE2b-256 a637616c8ac0dba6161589a5940ac2a7c0636361af027f9151c912422e06c005

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.286-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.286-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 929a5cf26da836c24ba48293568237141240e804c61a3f86144e92b163c6cb47
MD5 457505a97cdf641027ea903ae671b67e
BLAKE2b-256 d6bc65ee8eefee84cce46ba4780e766bf2e9d58f4c6eb899740d3d960c74ffa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 feb0ce2538dd5fb9e01d18353b26b6accd03a56a1fb5588935cd6310e0cfbb71
MD5 7c08aa868d8e346e3373bad0709a3f70
BLAKE2b-256 6258e19a51c11ae49137c8d78351fe30181b3b21e8a9bde647f7630eccf9f150

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.286-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.286-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d085de143b93fd976dcdad9aca1eda08e8f69f9643ab0f3960305b7ffff0990b
MD5 09eef59f35bf8e9d8d9b37117bb7e755
BLAKE2b-256 d7f3fcad45e43b32c4e4ae462708505d69f11119e4c9960d00888023b0ab0f23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.286-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.286-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c6ed0f1ee60efc76781c2f2fcde70c58dbd807800249646f6be2fc73a8a60d5e
MD5 69034e68ea64eb04be260236a8a5cb5d
BLAKE2b-256 a4458bc0e454d5c3aebe6ec56f3215eb0330b21a5e171b113bb43b42a9040bbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.286-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.286-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21d2854feeb41c2d4b1e72965d60eef6a9a303e7a97e83732f97ce3253eb1b10
MD5 4a41cdd987c5d701ac2985971583d9be
BLAKE2b-256 97d65ffe09b75e771e60ed4e727ba45b6d3e372089685b1bbf69932eb3681491

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f3dc6f4b70bcb5666e06aae2067b7b3a5c2b47a4c0bce50a84cb2c4f895094d
MD5 686b82e437bad14eb341e679a7597647
BLAKE2b-256 d77e27907019c2d703a2af14b59a037a9a8a7f7468567dc943b518916d71e4ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.286-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.286-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6b00c958755fa471d0078a69fb969900dc219b2030db2a591287574e461ece5e
MD5 3dd0d17f0c4524bd68169d2c6308aeb6
BLAKE2b-256 a2522253b0667aba6706718cfab68d898297cc563cd4fc888b4104da64d5a134

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.286-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.286-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4d3fd46f902522474ccc1528bc7a7956822418923a6404f3e3d2ac43144b0f00
MD5 dd73dd3bf4dbd2dc8ad8e71fa655f7aa
BLAKE2b-256 4ca273a3e00132cb2006e434d33b6e6eebe973851d252e1a0a375d1157cf4eda

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.286-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.286-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d77a94e63ae2c2b1367ddb7795f20620a2102b47730343d4a8c9e2fcbc35aeaa
MD5 e445f39a30f51d1340e8033c0af7bbc2
BLAKE2b-256 7c74c338d4f243af53376e429d7546b603511b1f12d6a6c8d36b65222ca67054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.286-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 782a8bcae50502fe66bf482be52acb162cc48bb368fc61360126031fd65ab76e
MD5 5f4c90977e0e21f21104c1d87a063078
BLAKE2b-256 1dcafdf91b9a3eef20ba2365af35a8eb43f53f9d37393aa925e37de0603b39c2

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