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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.9-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.9-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.9-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.9-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.9-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.9-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.9-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.9-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.9-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.9-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.9-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.9-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.9-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.9-cp39-cp39-macosx_11_0_arm64.whl (120.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.9-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.9-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.9-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.9-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.9-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 kB
  • Tags: CPython 3.12, 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.4.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cad1f482d622abc1969c6ba4a9eb7565c667770ec10b0256b1444e49e17cc65
MD5 b339a9ef4918361e683a3a670bec535d
BLAKE2b-256 27707bee3eb31b2be3a06c7d5945b4adfe54f771a151a1fe267600694319c59c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.9-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 73fa83d73889de98e5d476c40975dd935dab6ed29de5d5b05674854f25768795
MD5 804c55cd89ac42cf8611430e8f2d946c
BLAKE2b-256 9de2573c97cc7fc9680a500d34c709ee1906ed7eb351c9ea35da900b98d8a25e

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.9-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.4.9-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed587c638898c1116753c8610bbaa80ddd447dde551804e62388d7688ea12c9a
MD5 403334e08a32caf7361fc8399d92fe0b
BLAKE2b-256 240e9f179ce8c09dea488156d6f4a96f6bb5077bb7ffd84f62bfe4f246d45539

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1186f9524c3834916cd2471a463222292c92092aa7b10f5dfc17516bc8e78902
MD5 e961816cb34f929a48c6e48bf5376d3a
BLAKE2b-256 a72abadca76af8685c57a6d4b2297cbcb104278e0dd90ee4ac93da118a3f9b03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.11, 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.4.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 967dfb79fc33f60e3620a6f8ed4ade2dfce7550248cb07d2479bb339feeb38e8
MD5 3e4cda83da39cb8a6db0464a53b11e61
BLAKE2b-256 8db52907f309606ee527f562b50fb159f7d7fc2baf79d6071e9ea54bb4e924db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.9-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c1ada76dc3b6247bcc6000ff6d0d926934e1ea05556aa44c276008515482a3dd
MD5 a183ca4d63e7b6de9c0271bc419d71a3
BLAKE2b-256 1fb14bbe0bebf3fd1dacad25c4e38cefa7afdca0d335f185d51e4ae01b7e1cd2

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.9-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.4.9-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee2482ce2f99e644e351ffa6510a376cabf88a439509045d98a7a3847356da89
MD5 a9be4309120775f3794093ba7f5dc125
BLAKE2b-256 0e76aff9a195f69794bd8b903954f353eb74e445fa3eff57d68ba6d0def4a2f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f4cf9a5389ffdc6ce76fa0625706a22e8a45f21e83002868efcb43e02cadae1
MD5 2d01c2c97138a9de308f9021c88eb94c
BLAKE2b-256 a3e212b3dd23e0bd6956fab8908d3c5d7356df62ec24977a1e159853703129fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e9bcee0bc41911ade6ad2e6330748da136485c036318a7d20953c9275bc9f56a
MD5 cdff059f8ad45a48b38ce6c9888abd7e
BLAKE2b-256 119da71e2dfbcd7deac83de68663102b2746a368c7bab9174a505f39897254ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.9-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 122f41485c35f08701091c7229def32d1454b096659edea8ea91ee661cf90df9
MD5 1dc51cc2a3622d78e571612808fc20c8
BLAKE2b-256 a29c2aae0dd44d24b5533bbf0e155d25bcac526c2d630f5ab558955091b9b034

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.9-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.4.9-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d3bbe98dd1faa255133c0ccb1d89d84ee15959e7c55fe35a8e43c71d3b7ee42c
MD5 90df14abbf8cae33c1417a6c3a689908
BLAKE2b-256 465706142009608784effd4a9aa95679e1d63f5aeda7bb06334b8bf4e4508548

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e6c2a6e8f47c405ed52ec92e19d782b143037746a4f817ff03765eaa44aec27
MD5 abab106c774597c96f3d4e21f225dae4
BLAKE2b-256 a755bf56ef3d21b92dfaa1719103b31eb6aa8a6bac90836c93b2e27db61f8d99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.9-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6667f0a7c26b3003cc66cd76e6c1cec8aa22c1f09e1a942441e50f5fed45057d
MD5 1c6344ac56e056bd465359c7d0fd8b5a
BLAKE2b-256 27eefe49906067a661a091b2ec0d7f9fd63df5cceeca6067941b5aab974ed84d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.9-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4044c86de3eb9b5f84c355b89e6e25b0199496d148f774fc709219c1a68257a0
MD5 69b6ca77d76fd0d585df36f5e442e11f
BLAKE2b-256 a77c6a47316136140bd1533f4eec902e639a0944c22a0a248d470224fd4cf04b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.9-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.4.9-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b56ccda759ffdea3d0a3f4671e2e0afad3454102a7c137ec7d2e8279c95be74c
MD5 a8c2c3a29255f1070deb351891fd717d
BLAKE2b-256 3bd52fd58faa28b294d19e6b44edb9455004d13af13188401022423aa7d149f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.9-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c94df03f17dd5abcb8fdd219b6f53a8706b3685a5bcad5b86705c91a49bada6
MD5 1a5a10290312bd08a8a9dd9af8071370
BLAKE2b-256 b61a4d6b3722891cb3990c8de76b684512570251aa122a11ac7a402cf21824f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.9-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 81586030534f42f955d40dc4007530ba9f320ac115f46cfea5be690bc440b3cd
MD5 189a375cad59be5972eb788cae54c2f5
BLAKE2b-256 cafc3c96c445739a26301b474987f751b4e14fbd2ab35d8193d2ae31d7c2b2d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.9-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.9-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8334e01bdc4f3776e49baf44a38b754d91b298251c114957d4b044c20e983201
MD5 00624f3a320623ac0de9537849f33180
BLAKE2b-256 52d018ca8408c8d4108a4c6b28daafa77e2ec8c0b1f9e8deb3ebc207fa8ef4b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.9-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.4.9-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbd5373b02e4455bb288d72014877bfdc623ff60fec87bbd53fe12d014785b34
MD5 961dbf12e4b3f532dfa6abf90188a0e8
BLAKE2b-256 384acfbb34202a6f5d8de69ef37ab49ba9e5ae4256f64dac35de4ebdf761970d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.9-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a85aca876afc7f08ceb80a8a98e2c64d881a7e4b4a830cb5f13e0fc40a11ff7d
MD5 4aeb99b598267113deceb895a726ad60
BLAKE2b-256 e9e610f52a1bc772c1c5f2e5ea8730b484fe50596fe5d3b192295f6b5410d258

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