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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.343-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.343-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.343-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4843e8c15e0fb597d2b145eb1bc8b58fa1bab64a0b2b8cdb13de20970630ad01
MD5 8233b2118934c9b222968c228e0f93dd
BLAKE2b-256 39a2fc84dfbba96919ad70ecaf658751dab149c85415b7487cb26f413eeffa50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.343-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.343-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 79bfa8b6358bf97533b42b5e054a66b7252d4b0397f2e95a7de90564bcfd4556
MD5 012c31ab051ef67faaf4c6c8c26ebda4
BLAKE2b-256 a4fb8d63caa1632c1faaddf5a946dbc16d2a041ed9c86eb5b4b840d80201847e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.343-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.343-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f398bba294d1237481ca7852eb8ad860354ba409899af9ce9866ce7f4df62556
MD5 132a2c5f4376389bf5db32182cebe565
BLAKE2b-256 2c057aba8157a096a1bc46577c92cfc2f739e422b354bb73795764ae0bd72344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef543d093465564aa2687d186adc1ca13af99f92c1dcfa5af00f0ef42cfc0247
MD5 32007c88b5c9605fe2cb8bac1970faec
BLAKE2b-256 3fe067a24aa178d53b21374ac10e63cde23c58b21c7cb720b49b20e459fbc1f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b42b7f103a9d8f74e89323b7e24c0ed6959614236bc599f349e974a5e4ddc4b
MD5 d53ac2a85f6d01c983ea4860fdfd192f
BLAKE2b-256 0de597c7782583de76e0d1c44bc79a582f58918d3bb18972e537a1a8edd592fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.343-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.343-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 aca5f338b420fa4e0fe1164c21c82f9cbf75c26c3726d52d84ad51387a1a34fb
MD5 f7b4ff6fa4ea1429278d4b5d96f08c7b
BLAKE2b-256 93f4f889ec46c5a2278804596b2dfc9eb1d5f0cbe6d79ee8c79528e0d64cbfe0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.343-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.343-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a80238cb6a24a6987abc613dd7b9e2b84285c46704c09ace82889ff2cbd01dc5
MD5 8430071ad2d7aef904698aa514f5c5a4
BLAKE2b-256 bcd4387dc8b7b31f95ecafb0709585ff4f0b99d3e6391a8b3a5d1b43ad2b8149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fe10c8a6e4ffec3c09c5ddf8d564b6711dd827fe3b97b9d20d2545af81fc005
MD5 24105b21b68b0e95d9736dcca3983823
BLAKE2b-256 15fe20d23510efad3823128f5526bcfe77bf236061c4d3e4b829b7787bb2f9c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c6835e0ca5513b234014427eaccf2f0cf6ea8cc517a1215878aabe08c809b5b4
MD5 f29f57886194acb5481db0b820a7484b
BLAKE2b-256 cafa17ebfee62c4ac60b80bdd38d689bd7897169ce1bb8140edcc4167733b62e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.343-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.343-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e66e1173e803f7994e044db18c062ff561b2ab08c6a108d8b69c1b24e1abfc34
MD5 e145b5b8ecb5de933ab520482ff9ee0c
BLAKE2b-256 7bd942087a1c8f40b8ce754bbff1133f2b554446929be007dda7180ce6b0f0d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.343-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.343-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2d2c3c5ca02acd669aa772f80572401f0a914b7ae77ee1f3de1c5133c9fc30c
MD5 b22c0ab59456f2da98d95d59731daafe
BLAKE2b-256 51671c92bd5203667739ffb7288072eec73c28de41d5cb102163616d5df35713

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5099fce2406bc1f59b4a979dab07fd8c8164e48a39f642e1e1fb79833a92708a
MD5 8dba15c80822782969237c6db7441775
BLAKE2b-256 e52038159b33fc24a38875a351629ea1d03591393a7858ee33b2d7b9d7cd1fdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.343-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.343-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fad99dfbfdef0b39fc2282b3abd13a97338e87f38b3da67f5edf1ae44701d059
MD5 d1a5f88387d09f05514f1d666517b9d1
BLAKE2b-256 22582ca7a2d43b100f526cf7538a6b2e407f22c5b9c5b0f61efe921ff9d1a9f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.343-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.343-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 709b59ba152a14daa80ef7b9cf272624930c762e24ee135da9746afaedc2df6a
MD5 f4261bc4c9ab6c2ab73f7e2e0d523a9d
BLAKE2b-256 bf63e224b8bda07b3570fb6378f032ac0ef6cb110fb5cb6513471f52c28d5719

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.343-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.343-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6842f4f0e6e06b8f72d63d4bbe044f8893c2c9707c48350c322dc171635518aa
MD5 5d71265356ba186d58297413b5a2efc9
BLAKE2b-256 73c2d64bae6c858b5dc6d70550a43ccedb67a57c1cfe33444e420997e0713398

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7abccd87a0d8e044c02aec8f6d796f0413c61bddba5170a91f66292da8768269
MD5 e2aa469043399eb5051f08332a980ab5
BLAKE2b-256 29194c1cfcf31a2cd7a70d3d6baaaf4bf95b530e4230ebae5f98c48ba5dbef1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.343-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.343-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 378f3226467a29cab78f6818ae6073b4bb7bd4aea375beb8991bffaacee07af0
MD5 ef7c296bd10fe5ee623054eebc832dc1
BLAKE2b-256 78ccd1d412790620b9879aa95879432e7a5e8e1cb6f6a8ad4ece853fe587977d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.343-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.343-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 700f6c02ea071e708296c966e6c10e0407d0487fdf9535368d39312ad466f7e0
MD5 99d85ef87bc6307057ba3f748557054c
BLAKE2b-256 d5e6a3634768fe26dcb168d6a4924e7da2d16c53789921d3552df70e06e27c9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.343-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.343-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cdbf8ec88dcb88369b26c594f00b3db46059b7bf68192c5fa11699cf60c93b9b
MD5 e19799b09500e4c180fb409c0b6f5315
BLAKE2b-256 981830a8477a01c628688b11de0b23a5e5c64aba0abaed26c45997512d949c87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.343-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce7abebb92907eb681566dc2672f693e21c7a1167a891226801b92a29de77513
MD5 96dd97ec42b3aa25aca93424614f13c4
BLAKE2b-256 3dc779fd0ea33c87ff7244fd3d5a4d42eb65207eccaca1eede67cb5293fa77ee

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