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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.615-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.615-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.615-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d6154a79497c0fe0621c517eb9068b64fb7e99938c4a9a38c297b612dcd0ca94
MD5 cf3f4378be6aa3436548dec2d84c6544
BLAKE2b-256 94fad32c51f54564715e64e45db1638e6c3703bf129c00fa77b2b2a2707f7d34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.615-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.615-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 41ac932ecd01bf0314aeb102d8e239ec3a5471ba9b4ac334e4b2c740ece1f155
MD5 f905657876332579275f1f0150119c3d
BLAKE2b-256 a7647198a3cfc413bf7ce57ddd00ee2c5a6951d93dff7fad303c5655152fa750

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.615-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.615-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 474362386d1c24e2ca5001a109b946798ce0bf334f04b66b901cd741256b3848
MD5 562f6009eb9d75b25855a88cb0dc981e
BLAKE2b-256 7814fc3731718644af600da663b0b34f16ef5e41e84c62093c1071c616889270

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3957e4e5929d2a303d456fad953baf5a291eec99f198d990ff7790b11cbfef5e
MD5 6624a990ddfbffd684f348aa1722126e
BLAKE2b-256 d8fe8741951fd9d4b1d0d61395fc8134ad74b7808f925008092c720cd97bdc88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8d374bcfe9049a3968f86ce7f77ae55071119ff1269f015a308543e551efa82
MD5 f79a517d56bfbb1e7168d7f3562d4406
BLAKE2b-256 818fbfd6344b922a85338d0f9638d92a34370e5c0be62f8c1a12aae456632cad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.615-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.615-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 871b1d69495a1ad091d6b879d0bc734bb4f4f540b4db6c6c085c3226652a4c7a
MD5 9ba8d4ee02f2ad30749f60b7d48fda15
BLAKE2b-256 5c993df8288cb51dea37e810e8d5f427dd104cbb24d99fe325ce330af1024e70

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.615-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.615-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93d24e7d517941a961f096766e51fbc29e50393e42c88f2df7dbbf2cc7d6e747
MD5 ceb23ec9297f84d2730363ff1ee93be9
BLAKE2b-256 d4ce5214ada6b0d8e77a3e681c60ce906267d043eeba3731246f4cd7155072c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6574b1d868ff96864e7ad4988aa9c40f2df262d138ae71e9a2109fc68f4ca265
MD5 deee535191c7447cfe723634e827b729
BLAKE2b-256 0d9971414c4071d6145fff3c7ab0a1a97b35640fc0e624110c8f0413bef78208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa9441758fe9c7f296610c53ac2d53fadee3ff8e044c82f2421202237a0e7789
MD5 2f356c51a6e39a378e1c4f1fd85b1c05
BLAKE2b-256 e0471ec897c3cbdc239ba15922655c857a0be1964d2240fe16a94685d26e6605

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.615-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.615-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 82bc53b5b416da77fd7126d696ddff14999681422818183141fed08969e948a3
MD5 6da2312600cce645608a36b2f471ab0a
BLAKE2b-256 a266f859da92c2df4e15c0955d378235c5de3b0a53070fe004b123f5e031a127

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.615-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.615-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 26e5ae905f94f429aad16e5ec05cf9ac6d1a322921f86d26e105181b661c9219
MD5 745dba179cdd47156d81ed807b1e88de
BLAKE2b-256 7b22e32d4a53e82598fc43e750445d680ac8808df0a86c71153b2f55d78e7d49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21641d4052a971e214b22769a29833a30911173f585ffceacd54a3514d2e70d0
MD5 73eb3c0164e7810d1c6bb81de09d6dfa
BLAKE2b-256 c209e04f2f18e83ac8bff6ad2f2cf9a091c31c8c900fc895c358fab9add53cc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.615-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.615-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 def43b390efbb1131c5c555dde0a2356f972f012a0043d5d5fa55b622f7afc50
MD5 4db4f6158c61c264da0d961d105338a4
BLAKE2b-256 2f06252c150a6d61f530160135b66bb799d7b0fc9b21615ad9926404cfb7e477

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.615-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.615-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a4acc417e27a7b3fa649d411ed74832bd9b6860f586a7b7ea172e1e665256fbe
MD5 6bfa8190fae5558c6000471708e6771c
BLAKE2b-256 bfc66c93ae34c25d1a0c12774f769a926a074b9913c56ce0dcb1198c0d44bd39

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.615-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.615-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77092c3fe4f82c661b8d89de43a4725d4db62485be735f8091a5508742aab7ff
MD5 70f7bdd0d8b43a027d70576691b002e4
BLAKE2b-256 3d93b82a615200467c4ffd8c9805b2d28f74f9c989bbf03d51a21ffbb51fcfb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3266a92eabeda04b2118f58dbb9f7112d6fab9dd80f194288c3697a30e4d1774
MD5 6ba3b7a1cea02ebcdb70615ca16f5b11
BLAKE2b-256 a34271f9a77362dd1a9b3fcafbbfaedbd1b252439baf2af8c40ec220f091aefe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.615-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.615-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2bec10eeba8dbdd5c655c92a2c0c233ea57dd3f811a57591593a7dc15ab4ce43
MD5 8d92a7e79b54a13b435f41fd0a128621
BLAKE2b-256 3c929f1e699070a40b79fc71f60305a4a53fdf843ccaf64ddebf0bcf70cd0895

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.615-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.615-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 606544d817720643b0dee463e8267b893556b4fb82e5409281d2639f3354e244
MD5 43f9e6e6d911c2cb223d7bef20a599f4
BLAKE2b-256 ad4232779612f7b45d7e971072b78a055daa733a9332c7faaa81688042577a2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.615-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.615-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c0135a1601a49e4d9c452b98646492138fb34ca9a5218f0bda5e8cfdf78696e
MD5 d17cdec9cc9c11328f9ce72bf8ad5ea0
BLAKE2b-256 ace8647be5399c4deec7d31727d760a20e7fc233680221fd90a660b451307550

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.615-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6412cd360c097ca42f4426b85ca192c60e5a80ebb54dc49ca790f782a8bf2d9f
MD5 f781385084e66af76ee7f310c14d2934
BLAKE2b-256 f8340fed77290c3469b8a2276a7a0eada17cd010574e4c26947e82f2b47c802f

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