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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.169-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.169-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.169-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b04ab344a747dcc3fc6010d257da793678ea5ac99f9f77ed4d5d51ceeafaa9ea
MD5 0d7e927b9c2f604702dd17e3655d6029
BLAKE2b-256 e345a70b7f380091add68f413af904fadd3a8c88f85120d8be534bc17ce7bca1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.169-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.169-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3dc00c0c563c039c0922ac683bd130f7bf496f8f88cdd80b65d11f9536eb801
MD5 a90f8e124758f377a378fa8966a36876
BLAKE2b-256 2af2bf0fba2cc226d1aa7c4e3d685f1c679d972ed06af65eb92f2ec4997a09f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.169-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.169-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec20f8b5d7f9191ea5c8b08ac13da625c657377703908c5773c82f7f64ba7ff7
MD5 a4798b84631df77386a567b759cefc73
BLAKE2b-256 32cf4665bb27e31bb2c374a50e479cb8636addce3ce7c95126cec4a177c1527f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b294faa2a93f369122fa3aa7614a417d76f2828743c94dc3faddd4af0da533b
MD5 4106a1efda944a60e41033ed49aa6d14
BLAKE2b-256 b8b2ec62f8db6b3d1645aeabee3cc86278cc67e771479b4a2c9469bc5d2f5fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 37abc6812f43012569684c966e410e889ede0ef4137493a93e60c9becd421534
MD5 a091d8cbf932b08371e9ad8b12573bcf
BLAKE2b-256 44e07f167aa009c4bb9f1d0f5a7a780a0c9992efc20dad5ac5689df2b5de7274

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.169-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.169-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3f466c21fb22f261648c478f00204f168eadbf79686bd04d33cfc7f5758a52a1
MD5 c1f162492afdeeece6e695857d9f05ee
BLAKE2b-256 13a6ce0c5c260b64ba0b79f3bbd41eebbccd5b64e2cbe6bfe78dea3d985343b0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.169-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.169-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f9fcb9aaf260962afc2e1b3996c81c93d972fc98977366f088d46d0f3307a199
MD5 d0393770e58cb0b4274af5e4f4279233
BLAKE2b-256 4b299d2ce2727fbfa06f0a217c8b2f743aedbc3fc45fdc0c4140469537f92783

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75a9e9c9eac920fc2f5dbadf92a39a5b7ba344d62f69f80317dc290dc78ec0a4
MD5 a968be36911bc4738683dce801e4faa3
BLAKE2b-256 8a597cd0f8d5310fa535cd0c0c153b5dee0086c205395a87df071c468bdbd1ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4823f46b71a074ac82a3ea2b1d607ac15c98a753c20945f562a10c86f82bf078
MD5 36f8c6b51ade3a7eecacc70267558305
BLAKE2b-256 2b89269a4fac33e6f18923b5a0813cd2a3459c73acd01394001df6bc3647284e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.169-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.169-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dd40d93630fbc467600b1a6ab88be9ab2da1fb14349f191031107082c78123ae
MD5 05c4ea1e6200c01279cf4ba53c4b27a8
BLAKE2b-256 bd08795a25fbd2fc2ceb67abf67ecee29c354a12e9ac147a21c7e01020479440

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.169-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.169-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 426c47bffcf5ccd97bd153c783b3103f4fbda29974233be149b83cf51fb31e51
MD5 3a02aa6955237ab2fcd10a7d89cdac67
BLAKE2b-256 ac2c02711d3d9846c913d85d215285ce5efba845c34af39a4e08c52b3c793858

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4b93eb188c5f2148fe6612819fcffe1a22ddd0e9fd06d6db4fce53c6ec389d6
MD5 d2b1cbdaef63d053f582a029f5659ed0
BLAKE2b-256 2a25e6b86a04b467e3f8e25eae2ab531c0fde7c7638ad5e04004ff2b5e431b84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.169-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.169-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3c65c887e380b6fadfc1c89c5464110df43583ec4d1557db801220cc1a61214f
MD5 3022901eb5552d2a9b2dbc5008b186ea
BLAKE2b-256 8e9fd0897aae04ec969eae940fb3e6403f679f209f7dd5250cd61e17d87572d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.169-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.169-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b5382c32697827caeca4c83ab09222c60159da8380a22091ca90c0705dd3940b
MD5 d6e6341eeb7e6c9abb02b818e1e82f9a
BLAKE2b-256 37501389f162c59d8cf0e1e32b688d2f6526474cc1bf992e19deb92c78197dd1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.169-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.169-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e15aebdc01269bac79ba44c486f942de9bc5d139c58b8d18bb6d39d1206804f1
MD5 6be5ad1268b7e5d4b66c0b377fd37172
BLAKE2b-256 2665fac9130e1f8a46c05bba9214052df3cb629a728bd298a243063215a0a3dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cedc0c57d1217d0d3bd41f060b1b065bb43e88eccba85b3d90b12974a3bdbec
MD5 0db2db0548d6edb6c736344c09f0bb20
BLAKE2b-256 558a4fa8088b71b062ae9b9344fe948c7c2ac1cae6397c6d1e9bd89ce3428533

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.169-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.169-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 055760dc1e56244b265ddf9e072dc4aaf715afc6fd6eb24d4fa98b2f115cf2f3
MD5 5c9ba89bf939cf3709fbe09c50ce765a
BLAKE2b-256 c3b9b61f6b3db60694c665d4286ad43b23c8397aa7d72eb653a80609cd933528

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.169-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.169-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 33262856c1a8f94b664918b8820c34351067e094701d64abd162aef58712dac2
MD5 8f10edae86b2ab94ce2e4e2b755eaa47
BLAKE2b-256 95d13b965ffd8b159f99f6a144722db37c8e39c16ecab9986572e8026a40cbc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.169-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.169-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 74a2897eb5274a9e5595313fa027f1a27e15e04360e92592ee10ba9b074fac9a
MD5 475a0c1b315afe746c02a4099eb96a4c
BLAKE2b-256 3774ea7f594c6435d617798cd43be4ade3553351f071852177b1fcafb36b7ff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.169-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8217a28105df58aff7876b31475cc063d85a66e3ee5feaf90135447eae7977d
MD5 f36047710a2f4ae3a279c11fb7fe9d47
BLAKE2b-256 fb8c8e67e791f2fc93aba2765aa602d0399218aa4a2cb175ffa1ad36f9e8425a

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