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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.924-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.924-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.924-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e208631f26a1d75bd3426ce84da3c2409f66b959d6b73b60a57c97913d69d7d3
MD5 14fad864e445ede046614b8ef24dd4fa
BLAKE2b-256 c20ee048500b88a9fd1f03385feabc7b933c0067b56fd220106f80af6708997b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.924-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.924-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 40ad41e44f08d89439583dc529e0f37664538d8e830fe09e9a5373156ba2371b
MD5 30363694972502cca7ff36ba60b54991
BLAKE2b-256 09c2e179452b3a2d31402a85d11e4b960d396a7d269c846404152e5c94ef0a11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.924-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.924-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 283c6b818b484a7e4c3634a1823e62788c509f4fa805acefcce0cd528a08d50d
MD5 84358a2497d9b1aa52319a7452743159
BLAKE2b-256 a142e43166c0dbdf0dea6fd61ea2eeda34db5a355f4ebb3c7d302ef331ec1aba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6af8ce07eb67ed6a2ae9e5f8a406ed342637d44b69838f62c5023a586d94e528
MD5 f086337fa8b1d87b06237c935a45938d
BLAKE2b-256 b507059c0d4e35527e16947b56b9c7d49da50a043ceb1b87c6e156f2dd7519d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0ae0a4f5f35bf2fc94ec94395ef00254511f22769992b6105c8dad30a9b52148
MD5 1b6abd479d517a5f79925f492eb609fb
BLAKE2b-256 88295a29ad484cb06f4a60a13fed85954c6dda0b78b5fd5aaaa661d60dc07341

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.924-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.924-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b7a10cb9bbee15011e3af9348cb36e8a82e625c3eb95b6e9fd1ccb12d6ece6dd
MD5 43bf13df8282bd901d6d5e1d505a6704
BLAKE2b-256 ef06e41ea72061efd99c8fee23fbf4de9932bbda93472a3ac59363cd6ce0de20

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.924-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.924-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2ae6940b27b960eaee3a5db9c1dc2d77e7e74ffe050ad9611dbbff605223c31
MD5 64d913ca3f35c9107294a28a39007eb0
BLAKE2b-256 73cbcc59fa1f554f7cf9dd2aef284c05a8ce7b7356f6e46c4ab764143cc22db4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55f03d48ef3285b7ea7fb11df7b12e5f9e82e8b3b787438d9faf20ab69f3a326
MD5 436100be3faf764987bcdc83b426ad6e
BLAKE2b-256 bae6c2e8609b14a0e68af792d4ce29353fd4ab0d25932e91750046d02cb6d5a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 56ea68b01d9174847f4acaa75de4e1f4b7aa95142e9b7c4a41011131b69c4674
MD5 c9b8a22b543709fa17f468e27f5427c5
BLAKE2b-256 cc659e9622a905e3362d5d51f6076b0504a3a75ddeae1b55ff0b148b493c4f8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.924-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.924-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0be17708a96dcfe735ab5a4ff047b1166094e645cd1f9539fa9f42f0b47bb07b
MD5 b5700c7aa8f23e18ec19e126cc157b5f
BLAKE2b-256 c451a9a267c9a4c60bf61eb4d31340867ec3153e37a9b0d83043b2571683d79f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.924-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.924-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8fcde40ade4e29248c2d4808681060de8d8b1fa22637776cbef34086530148c
MD5 63d4b1ee5d4f61f2bad7d571c49a7873
BLAKE2b-256 e43d1078216916b708382c33e6c0d366b02e4a613e4632102ae174fac5a336f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9f29818b3ef3a29130f3916b2b882d45cfb786fd3cca3228856d853ced7748b
MD5 48c0f7c7a2a213bb24efba4500aa033c
BLAKE2b-256 8cb15970659ce245a917876354a7ceed84457f44d16c064781da83bead3bdd1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.924-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.924-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0484b79f7e8d643d401f5598323da2ca55dba404762ff9ebbf2199a9254de5ad
MD5 08a30cbf60cc508b7a8f89dcf5a8bad4
BLAKE2b-256 daba832f1a48ecd043ef2c3d60527bd881071ada0248eae7e70aa5a7597c6a41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.924-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.924-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1932cfeb15c7b8bd11f67a08139ad501872e87e36461b719b8c7ef7847147a70
MD5 338805e05de1812921ae41928866d98b
BLAKE2b-256 cf717270b930fdc8b04a2d53f3152c263951378ec3f7707cf09a3b2e109ded86

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.924-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.924-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5eb15fab6ed5787ec62ad41a0873b9e9d5d823ea6f3badf98ceba405e517e68
MD5 7b7beb90d034f5d581f2232da11810da
BLAKE2b-256 c03ac16b762039fd4aff3ac37cd6b86ef94d0ea0d5281b6dd67dfc4e92be1a45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7527a47fb53607ce001b3904d240195cb2f759e7b234dd733f9cd526e0bc4c8b
MD5 31c1ec9b61ef9422951942f57a0af3fe
BLAKE2b-256 8f48a63bd1bec352a6f89c805c0af94a64ae9988710a655279dac0f0fb8a985f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.924-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.924-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 84cf067f3d2ba3a7e12d79d1ac75969dac64793b8a3a0c9fcd88e520ed8f3f01
MD5 a8ca633b41736bbdbd1296cccdd5c713
BLAKE2b-256 2c8771fc36dff86ca2d2d20fdaa7f3673d9aea4fa4e83229cbb3f189dce2e8b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.924-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.924-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b9a5d620de74219fba6a02010a8e9642addf4a698b3492963196fa3b3007b663
MD5 e5d10ef7b456f99e88c77cd758017942
BLAKE2b-256 81e05c4ad15dfae54d4ccd0893a80192b5915c14a67dab5b472a37bcaeb405b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.924-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.924-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aacf1a6fd8d4d95c805d4003610019dc32f5f0ad3eb698b490bdfe82f296ae2d
MD5 7391a14fbde2f435997c737da178837b
BLAKE2b-256 4dcbcec97da5a99e9e7eb7c937de075fc5692ffafe94ca183ef2d014a72d9c9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.924-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99543410bc36d7eab1086829e442564e369aacda62c8fdc35e130a715bcb1852
MD5 38a7ef091f5aa92b43ccf03d13b08eb7
BLAKE2b-256 8b2445706079c572edb9e99e174829b94f77c72331e125800b27889639348cec

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