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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.227-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.227-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.227-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 17c0e0c8896dac5d7f4f4e9d92acc3952c1ab9aaf5320dee07c8621608b31038
MD5 9225c92813b28d01b20b8ebba07cf52a
BLAKE2b-256 ab63dd7f6408723abcc682b99ac1954c8e0ad0938c0ddb54430213893dabb4bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.227-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.227-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7f682fa0c71733d1da0561643d4e5bdbf94ce0e7f515648e404486a568d0ad8a
MD5 8e19f6fb37516ae770f89709e1d7e53c
BLAKE2b-256 f72c755b423a84f4ea9b1087458afef3936b2d8fc4fef76f1ae6d1ec67f4e427

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.227-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.227-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c067f99cf4911c9dba3b74cb19fbd1d122ae8f6ce915ead784140cba2dbe36e
MD5 63fc9f1cb3a83bb7284540a6972d8ed9
BLAKE2b-256 915f2a0f76e416b4449330f778dfebdafffca572ad7279c14fdb132b395c05e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f6389e31af7e159b47c387507b909070316f35f86807730f330ca1713eb5b1e
MD5 ab3adc591fbc13f26e28bf5563796c6a
BLAKE2b-256 894faea9a0226284c6d77fd5b9c5a0d50d41831214e1b8385d1dcaa3d2331ba2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cbea185a317acaba7c859b4742ed178671d9234dfdd66745d7d0b5b10d9a4419
MD5 b983cc389f267e2efbbc09a6aa88cffe
BLAKE2b-256 cf28b51dbe1701fff61f5e4fe9bef82c2196b786252c2b475fde040611a3cdaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.227-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.227-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b9f1fb9374cb3bcdecbda60cebe9e97a00ec2c09e00f2ed2ec425860ba6b9d59
MD5 6bfda37759abdbf54a11904fe7989fb6
BLAKE2b-256 888647aac2d5e7bce70c934bc3d089622e821fe80a17f0d46195e86681f0b64f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.227-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.227-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7acc2c540ae8425c397fa20bdeced365e5fd2e48918456935ce7c4111af7d0e6
MD5 e7783f7c0ac0f2f7cd9ffc6d2257e600
BLAKE2b-256 6799cf6db0dd144af32bee69b90ea8f793cb44c1566302b1c908bd3b42b7b6b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 090ebd7e165d3b101765483d949d100cdd06f6e73bb05b833256eb0d8e9c4a43
MD5 8f32983f2053f7d5ff8bd2a9dd4fa472
BLAKE2b-256 593b782b30524b7802624beb7f663fb60fc5946de91c20b7f007b9622650c222

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9a9bb322b572d3368bdd4556b81fbe322a5a686303993202034f84b3263787ab
MD5 df8c8a23cd928bf24824aedbedf64047
BLAKE2b-256 fc22a960ba913c313393a85a7901f33f692c0a356bb96b97f6f2024850ad692c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.227-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.227-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f881fe0f9d8cbcfdde9da1c7d9a5a3a338bfb3dcce7b202621cb3cc7d83768da
MD5 9b5915abb0cdd10c1b96b4da61a13df8
BLAKE2b-256 8024be1d494462356563d8c1c7902913bb58a1787415805c6e91d272c2263d46

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.227-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.227-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb45fe54acc76724307c10424a0d4e36734fe4ec483c8ac4138587e4a0b5d454
MD5 aaf872bf9b02e5d33e57c6d5520808dd
BLAKE2b-256 d928eb1b8540e752dad031b5dc9a7483fef8d28197203bca1ec198137e610920

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d54ed745b4dd57ac15db2cfa20ff93c6a487a60df51ba48ae066425b5cd6af5
MD5 63eaddeecb47092257ef5c4fbb764f74
BLAKE2b-256 1e76f066e05b27fd5b0b1f254e7e50a522315c91c69a00d3e0030fc4ed56d50d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.227-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.227-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2f4d6053a5157cd12dc7f1a86727d25cbe682b3193567dc2708e23fc9712cf77
MD5 46853ab1c0944d2616000fa0249efcd9
BLAKE2b-256 09e2611a66a44634711bc48df5424d7912a0156863e98f68fddbf595836ec990

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.227-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.227-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e63dfea10a9e2e94a67579864a0ab251079c34c711a59f1bc8a9aade67866a04
MD5 5e8add7199aaf75cae22265c87c11c3f
BLAKE2b-256 b7ced766fa3edec58c507d15335ae7850861ac54377e42e636a3dd4b647ab4f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.227-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.227-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ada12665399e122b1bbc7f8415825e66786d3fc37f2b235e45386d82db5f9ee
MD5 6a97668b7a1c97ad44cb5fb28265c296
BLAKE2b-256 2ddec482953392bf6c9c56336760c8d80a6380da193a3b37fad11d0f8ffdfb79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ba4946eb60ccf3b1734433f1217e139ff718974f99a77b96e42b57952e6ae2e
MD5 6dc58a6d9fd87c3c40639259aef864fa
BLAKE2b-256 20ce764acd56e5b5cceea6627f47bc449a3ba8377b21cc1cd8851c74aca9fefe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.227-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.227-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 78a8e70aea5c41722814d8aea75ba0fd890cdbda6e07ac539083a74e76828226
MD5 7a76ed9c9fb7a09c61c0e6ea1bd9cf58
BLAKE2b-256 7fe26678a2b30ad29095244aeb23ec75f5790ec2ee0d9fda96ac95860d25ef2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.227-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.227-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8e81f4f972e2053c0c441245ece381f78e46f15b4a7ee089a35e016455afb52b
MD5 5ae01f1bd539ba389e2cdca62444f9ad
BLAKE2b-256 e5609348511fcb118d0aa2d1e54622689ea8067824639e5945c90ca6ca2c1967

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.227-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.227-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47452ace515258a4099d294cfaac9fccdee9268ff90f913329bb0d74f85891fa
MD5 146f6e83d543ac30127a9ec863ba1c17
BLAKE2b-256 133648c1aa9240cf0f265bb3ac1e2eddb12112da7fbd67cda867b1eb43389685

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.227-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0b0be3a52391eda5d99d5afd7261fd1e5f33c8931f5cf8022ec1014e2095415
MD5 148cc0fce5308705595e87b2fabf8cee
BLAKE2b-256 1d410451fd85a6260fd5c8773eec21269bac4240f2bdb694549a6b6edd4e0540

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