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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.561-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.561-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.561-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 66fd6a4aab269e9506dc25bdb11e475de41ce50b71c6bb97c01cefc5769f170b
MD5 b6fa1a1c6008b90eab10d91c2e321b64
BLAKE2b-256 26e0671b787e9f84bb9bc2240303300de991861275d41e43ad9f9b4ecf5b9234

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.561-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.561-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2f42c649785fff18b00cbf518f492f93024060156d6e77771642cd164e17bcdb
MD5 0ea87f46f9990115b5814290e0db8ed2
BLAKE2b-256 d77ad25f581c0ffaea07d5b932ef3ba4efe3b01fc9e77c75de4c29f4ea7cf7a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.561-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.561-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c55ca2bc1afe65093e3f16ac4f7d2d5cdb5597deaa2bb4ddc538ce641fe46de
MD5 03a9cfa8b93575c6f5769fe69a1497d8
BLAKE2b-256 296fd75659c0ca16f61cddbb2a8ef0955519e3f4224452ee395aaee84d959b3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29e327684887ed312a10abcb7ad68f48a4fc9f9649b1b9785d971e1430562270
MD5 3be1d2845f1a5e6ba6505da4a5d339ab
BLAKE2b-256 d533dadd8f4a3a86e0f73443f2e614b487bd5b1ada981d7b372f8e6a6e0200b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6ed04f19521cd2329d67fd233fa8ca6c308a344494eeb0818e13fce636106d9e
MD5 cf47f40046c652ab8a5a722268a3f188
BLAKE2b-256 091a46bf53bb28f01d7dacd7a577027dc57076962717251834600d185ca43f13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.561-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.561-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 678159ea0e70bb53abe87d254b297350429dbd29517896d0674ceb15d4284bbf
MD5 14f4819588a0c18870fe19f5fd3c5e38
BLAKE2b-256 aed1e1af3353c42a303f47216948df5d6f028ea54abb3be56d4b935550d9a9c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.561-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.561-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63dbc33c5f737229add5c8a8fa806e0ef673d9af512cad2f8537e2eedf0d258e
MD5 b8e499a1b312a6ac3988f690cbba8129
BLAKE2b-256 8fca0320e8db26503b1c91320d1bd229ec2723343fa97429c0f6b0cc595933d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e47332b5fdaffb759f42760677c643ce5ce988775686a86dc19da572c9627850
MD5 d055fb69b66c8c448443ecb8a74e24e5
BLAKE2b-256 b462e775f13afbc3b5d8378732fad3e514071a29b925ec33f9fd259384c5a1e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 91171c323570f6c96357565d986ffa845263676ab6f385a5b615adea0f7d23e5
MD5 f11ad25d8d692d00fcf47853e5b9c5df
BLAKE2b-256 0a625b2a7bd2e90358f2312a0c3d52322b1a7d4b3f230acec73bfdc48414f703

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.561-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.561-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 709d69911293e307b142c3e14e82e7f7c35a6d05cac7596d448a0b9598a1cfcd
MD5 1ce684e0686b1f1fdc69e6ec10996d3c
BLAKE2b-256 3dcb35fa039763d5de9ca71fda2f524867ef10b0ea95ec055550639dcf3916d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.561-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.561-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf16095e270c24766b4c92c0871e7e023ab215683a6130c1162d78a3b4ed4a7d
MD5 7fe275f6ce3eaf334032d171fe6cd703
BLAKE2b-256 11a8e30326c3a971ca8bb44bedbede8b17b5a718e862b4f5ca7f95016129050f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53c1600b5adcd88d4ec27cc37b518ffa8a4c71b954892d5f967172abfce90395
MD5 6ee6ec50318400d8836a77db7c2a2447
BLAKE2b-256 e86617b8164aebdbb592c787050a585aed8f05b4887b4abc525f0a535ba05b1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.561-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.561-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f989ec36913e5585618012cdd6aff17684dd79fce1130885cdf3c844a770715f
MD5 790ee51b5370a07babb30c4ddf65559c
BLAKE2b-256 e3a4109557b37850b5e72f065d2668c76a27e55ce679194691d1524574fafedf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.561-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.561-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1068801f31b3557554984ff4c7935a50c00fc61056b31b801552e83dedfde67a
MD5 c43741359d1161d185d8cf2badb1d573
BLAKE2b-256 02471fe5fd6e88c286b3a28b07d7dd1a3c004ec8616278d44e1468151fca5b6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.561-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.561-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d741353bdf5b813c6c120ee4c1075a574fd37394868c4d46b9433eebcc0e20f
MD5 bb93fb5612571ff0705117d3c27b0a20
BLAKE2b-256 a262603387e6e53d4528c597727137f35c3789fc49a4a28f0e0801e7646e4292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d0f0194939d97f977e3582b11534f3580bd07c0ef5fddd900b99bc1020c24af
MD5 66b0d46830118555c46176d5683a2eef
BLAKE2b-256 58e89168023d1ca6bcc461882b3c9f972bdcd413bb9d4030f89dcf548f507acb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.561-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.561-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3d3a4287c4e3c39873c01f9beff210b5a83d24ab154285e277235720f725a6f
MD5 ebb24dcd1c8a54d61c8933f261bf3741
BLAKE2b-256 bc2490d8746dbec3d67a5b4a15f9af98053f192a31e52a4498ee900bc1bbd9c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.561-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.561-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ddfc1ec231af88461a17cf0169e2525aad0ccacfa7448fa79d27af077c62f362
MD5 899e4b355020b0c6be7518e1ae3c51ab
BLAKE2b-256 b29ae0af3894b92024c62cc39cf48e8bd726062cc0501c6cf0f66414074acd08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.561-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.561-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eee7ab40c0fef0591d72b9e471f3135f3275e121cc03d8ea42c453cdf3d0bf9a
MD5 78c37bf958a8a703fe2dbb1f12f7a4a3
BLAKE2b-256 3a42204675246fae74908abfdb1f2f23c713ccbecf6e944c983f100ca16e104b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.561-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a23e00511cc8ddfa7d3644d2373c39bcb8075a3479728d0833c15b7fa02f9437
MD5 7e65bb91dcf5abc328c5dcd41fc6d159
BLAKE2b-256 1f3e73b4cb3d3b3aa8079260ff5c229d769649b205a550df9736f4c4f7874526

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