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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.943-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.943-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.943-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ca139d0ebab1eeb3e78976f243c531d854c300044b8ca91c88d4429a5de80808
MD5 56d0351887e14aa072f75e00bc884be0
BLAKE2b-256 c2360b6df1404fa53533b795488fd398a0d1301e650f3c5ebe5272225d33db1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.943-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.943-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 292270ff58ed5080c247ea4296ed87179b8502b665134f3fabd40f4cdbaa67c6
MD5 4fd4704008ae02936a579805ea037d2c
BLAKE2b-256 e23f747f8eddf720b0bf2c5e9390fe8b8aaabd0cb377e650dad7e941da0d3790

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.943-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.943-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28e536c65bf8254a38ab243dac86f7b42e728e67e45d5d8cd089272e3c272c55
MD5 05bd3818eadd33b6f47f3bbd5df868c5
BLAKE2b-256 8ec07763f861982675f031f6cce67b05e93a21c9904d9ba5de0996b27c0f7ba8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a0ab5d538bd0d954973d1c7b3b09db053fc046aad3a647f1a8f63cb3e4411cd
MD5 5fde39b0c89766c7bbd2655ed1cbd83a
BLAKE2b-256 24dc9671e7ad7b398ed2b63c8413d7819dceee6348ddd921225a1e733263e8a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 90677b0ea5d72f4893ab9be4c13993f72777e99f9daa1c1aab12dc6be259c55a
MD5 781a8968f7a5428cca774199d1e04662
BLAKE2b-256 0b77b4aae6ca648ec81b01b2717c8cb19e0e75565258b86c66e552384d3d3df4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.943-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.943-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b73dff4566814bb398e369491cad4121fd9a20d6efbc03d2177deb030224f328
MD5 5bcbc1fa59a463b500ed27cc2447483c
BLAKE2b-256 7d35c5afcc88ebf08c37bfd24eb013989164556a48e5baae78c9891cabe79ebb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.943-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.943-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ab127c6a0683f50a1dc701b25e33c8ebf6360a33fdf2d629dd7cf78526b709e
MD5 e3649a2b1aef4e0ebf4c671700181992
BLAKE2b-256 0f3b1d9a3df2f9630ce24048b9f8883d93698a91e5b5213a2cd34dc18716c262

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20199d403e48b553ac5a8473b3af23ef3cf38f8cbbe025a951c3021b89904058
MD5 c24eaf3ef730783657f0d0c081112b9c
BLAKE2b-256 296c523f02761fafddd97505cf9fb393d95c37ae3aaa29fb96e7d9b95c7ebe91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f849e98128e4bd6e8dc980ec10ff995d31a120c05740b6f77a2beee287c2a509
MD5 3735e7c9f48c589f836b3c9204613043
BLAKE2b-256 c988c96302e7152e4425ccc780b57fc6fb244b68949290db8990acf5de76d575

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.943-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.943-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 50dd88a5a525418a1562a499549092a7cfdebd57ad76cd572a1bde982d74cf25
MD5 35557f538fab541c2cc79852bab5a918
BLAKE2b-256 2bb93a5fd1c3058a5b680848336fabcb54535c38da00405be7174f3df5cdacbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.943-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.943-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6eff9d275724b8805676f826e1e33e2f0582db5b691a9df3d676194464e0745
MD5 b11afe7beacce308400f8db1a3d62334
BLAKE2b-256 602c4f049821e056d9d3864662f9268a87d3188f961bb8c053375aeb21700127

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0191f71280dd0345c1ddf7ac07a17219ef9765ab9c8c0fbcd94dbdf429a6ecf5
MD5 cdc1e814a5a5020b48c9e29145b857af
BLAKE2b-256 2fdae376c64e619b48a24c959aee4a060b6e3402521bab514eaf730c48ba8322

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.943-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.943-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a05b01785348d16b6997b27f3fe641a607d93513f887c0a297b5912dc07b45bd
MD5 519650bd2d2d8a5b0a9d399c5e774af9
BLAKE2b-256 d579537b75407e004e62acac387bff6498b5e2265b47aacba153867fc10dfb2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.943-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.943-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6679ea4ea018443c9642e278643d4ac6614b87cb79a99c091b719d7358811105
MD5 32b40127ec3e5966744935167f2eca1c
BLAKE2b-256 e076296d1dace6aa007db4add2ead50d2d2d54877c5e7011d8ee3f6abd980c8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.943-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.943-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5df206aef7393eafd934e0e93c8a3bea93c16c537249b683e17e41d563794ae
MD5 38089dee08bb4ed4715562c6983b090b
BLAKE2b-256 11dc774eb325384530b61d3d0c79dd9e682f97734c92b778ad7e2a4414af18f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab6d89ffd08563fef0261a081db32e6f333605c59b200892f8cdaac694c9676f
MD5 3e78bfe089eaeec20bbac7f1a6cd2999
BLAKE2b-256 fb82f3b9d98b7fe159cfefe9d85e91f0df3368839c69387e6f9480e1c6d2c136

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.943-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.943-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 53222d20798e82b1165caa18acde21606bc86c2db3016f11b9919b3f39d0f864
MD5 66c6a8b054954b519a065f4c46dbf435
BLAKE2b-256 5589405472bd01c607dfeb21d290cb1cae7c39cf747b18b4e0d84c41931d666e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.943-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.943-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ec6d3992d4163bf541248a0c23d5d73e5e231f4d69573da9d2bb21f9aff7bfed
MD5 1351f8898d79c9e5afc04245bf776f1f
BLAKE2b-256 eefafd986f36afababaa964f70cd85eb5a2ea85cf032bae33726ccc30597e121

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.943-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.943-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef1df09e47cf05ff0cc29fcd84469d746feda7a354b2704a92aa6977a1ce673b
MD5 9b8639bddfeafa6ca44f337df9b15dfc
BLAKE2b-256 6a2e4e5cd450947c5b30271b601a4c227d24529385c8a73e9d7293cce254af37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.943-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b26fcc17a900c82edd246565d9ff57e1f3253bbb72197a9d74d9c765ca1fa27
MD5 98ff9088bbea9f0a41e097493f09fd24
BLAKE2b-256 02b4df4ca232a73b1d5ee7cb9a2bc5cae001ccdcc8136df8d04ce9cad9450e70

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