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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.347-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.347-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.347-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8af94ef5816391d1c6075e0607649d17881287421a3e78d7d1ad28dffe2f1c52
MD5 b3551f2f66b81b244285636ac76a9981
BLAKE2b-256 6021408a3e5161de2493f1cd2def7794129d9f6ad660c8d2e4b27a3a1ca31ca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.347-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.347-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2cb5872b6457ed2d20669e89b368fa42c11d68ade1745930c111d7c066d65f25
MD5 f0ca2f71cb58760f7075ef496976689c
BLAKE2b-256 c6e2eec1a386e377ba97ed82f779617f6d738a80271a032084294cceb49fb4fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.347-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.347-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1042f8b69ae677a542cc5c82fb975dd62f5c5862d5ee0dce5587d5d2c444aa12
MD5 d07672374986c3e7849e23e1a6f2d523
BLAKE2b-256 bfc23257a8f72a435749d77734a15d658a04ad12cc068b546c2921377a6e43b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1c48945f8b2399dc6692ea04bd8e117a23fb1758938c7e34b093e4e218f66d4
MD5 02e3e156f7113393bccc4ef64416113c
BLAKE2b-256 e89403f29045dfda632617957b95a36711febfb131bca33d80bfad1e0a95733b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6775c07b75cf17ecd7e7590a133d996f547399055185cf35814c69b87ab3654f
MD5 a65bb2aeab5f3f8821b1b23b222cc33b
BLAKE2b-256 9d559e0ad1a72d837d2494da9593564ea91c5e86b0f2c5d9cc2e8d8b9ea3d6f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.347-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.347-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 10014b8463f19afb6dd41c98a0d38d8052b3161d29bfbc196c2d60291dc8f232
MD5 274472e776629ec6272e84c44310f20f
BLAKE2b-256 6f5863ce7f774edc61575fe55f7a58ded8cf10a81f4a6294fe37185e8edac936

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.347-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.347-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d4744fd09817059085ee24398bc35b4dae78ea81b1826e44533f638ba4ba2bd6
MD5 130c89af101bcd77c490cda4e5edbe5c
BLAKE2b-256 2ca9b8d55ba72a0fb8f9a9b7ad3707e6ec56ab26d78a8eeb00269dd263ce376c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba6acae5d9fa8ac3eb25830999ba127b360f9f86c4710365573265f1ae50da54
MD5 a4d716873879b5f709e16a8fd2a20a0d
BLAKE2b-256 27337027b43286fd698b9835a465b2b51d58c419f9fbb1bd7ecd3ff5db5729a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 809d3bc9bf27da49e7b016f4b305c5cd5161b228d66cbc2cad3a2ae0755308ac
MD5 15190d354fa813a6b1cb39c52a61d345
BLAKE2b-256 ce8603f95f8a4cc4711d8bdd5b1da41f4121c0bf1310fb07651b52a7bbb8d01a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.347-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.347-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4bf6dc59d8b9a2518692900f370028caef42abe85eab226f56185f56b2a0c846
MD5 1d8343586b898e2d5aac39fcee9c3429
BLAKE2b-256 f0ee2a1bfe35afebd50365f448e41a09ad57cdb2d8ef394d58fc13d6d52b94b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.347-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.347-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 595ca0b39ed869cc011cbfdccef0b69d6d8de632e06d3cad822600a474a8f045
MD5 5971a4045dc61c01cebd655196f2bbe9
BLAKE2b-256 b8b4b93300749d91c2dc34a73eb39ed649c2feb0a51f5ea2af35e06477318ba3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d75025d5855617310a43df2cb163fe68887382dda9c1b22d5c24c811db878c1
MD5 9344a6f077365ae2948d435da764e436
BLAKE2b-256 55cd85c7e317489f87f613bd8b69b69fdd993243fc2351f532696006fb87641a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.347-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.347-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7b5e0e428e0cc35dbc7666f004000f1b5a04e56317c83f4f27699557abc56d4d
MD5 ab0b54d3265e4864ed792a67d593b102
BLAKE2b-256 c4eeafe2d6e90a3a47472d69ff463389fa51007b3fbb0e4804bf9956e916084d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.347-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.347-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4fa70bb4ce058e9eaf322ce8041119a5188dd6c00c4258b949fe0d7ca3c9d76c
MD5 c36f32320b415e9043a75a671619cf53
BLAKE2b-256 6be2806d3894b3d91dada19d61f8c8f03a70e7260baf526e6877e267cf6905fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.347-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.347-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a2fff171a53e9d3e25baeb8796a996d91ab6bd2b5e34c4a13822d4dae82b9d1
MD5 188a5320a57cf4cd38602fb1b682413a
BLAKE2b-256 179e9369f9e680d7df167a0ef47a9d917facb45404204ece89569f516e0d70d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63120f631485ac7d87b87345462fb221227888189381d8fcfa1d05185da1a265
MD5 63de7b8848b1581f66e16a99ec14bfde
BLAKE2b-256 47a134ca261acb2ffb102c7cc68dbbb70b999a4c82a19cd6369f3aca019a9d6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.347-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.347-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 75de94c9c2ff5f0a4b6f782892ad412d1ac5bb1a7502a31706171240ba4334c6
MD5 4d542ab167ee755a83a985c88e174c60
BLAKE2b-256 b22033ba4323b6a4b6fcdd468302dd092a1f524d5f4198e19c91180a4a4145f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.347-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.347-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c0620f638ce9b947d6899ce325fcaeb1884d5ef61db7556c52cc5bd48d0d5385
MD5 e332927eff85722229ad5cb0f853c135
BLAKE2b-256 f7cfa3c2d2e13dd138de6613fd0347c026998fac3631911f6fc33aa63d0a6506

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.347-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.347-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b41bd1751ae196bdacd64489a79163f2be3c82d507ffbf2c5dd75ca81b9746a0
MD5 cc1131d0e3e0234464a65bfce75dacbd
BLAKE2b-256 3ea1ec06787544dd2310cbd289a9450f343f4c936c3858633bb16b2456ee2442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.347-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 313c897082ababd99fcc5904090f9820c19728b34a807d81943b9bd0b7e171a0
MD5 a6823ef7aab0b272153690bd7d719dd9
BLAKE2b-256 6a3dbfe95688d762fa35f5f0a00caa3c247bc73333b4bd32caab5a8de105cf96

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