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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.35-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.35-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.35-cp312-cp312-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.35-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.35-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.35-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.35-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.35-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.35-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.35-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.35-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.35-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.35-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.35-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.35-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.35-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.35-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.35-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.35-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.35-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.35-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.35-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 93de2b99ccfdb54d948ba70b8c93a61b1a4e5fe52f03a613df69fd8874a75dfb
MD5 c569acc2e2f460a5b1dea747a5e332ad
BLAKE2b-256 1d0d635699e253768c518588939a79bbeaf997c126ad00479b4587adf35590e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.35-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4966db166ef6d124c6d70248cc9a5a62c930b9e070c8967a122b985a4b841ee5
MD5 76a76373e35fe36d7c40b985ae7bec91
BLAKE2b-256 3dd722307f6b01b1c13a478e8d8cef6d00734b5e75b2151ac4dbca9b6fea6361

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.35-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.2.35-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0edc49b68f2cdd9c8025561acbca64d37b38615a3058e79a6c9611b40f3dc7b0
MD5 eb4c4b1e8046c8e5d515ce7b7ffcf252
BLAKE2b-256 c614375937e73f56d234ade68e9bde17b10e46c9a84c06e495a5016994504ed1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.35-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 173847e412f78504cfe2bbfa7fc904a5c1e3c8325c5b9dd6a5a2a37a61358acb
MD5 3ea34cefa0b39107f8ab205692f746f0
BLAKE2b-256 8975704b3bdbda014940a853714350b3833f4c9d0222976e3fec103a240b6cd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.35-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 39e6b8b5f011ba225cacdc1ba02883dfcd99891b13e89f3925c3dfe1c0346314
MD5 a36c7522af783f3793310e73be9d2ea8
BLAKE2b-256 ba4a52d85ff02f5a9f8307a71cf6037a1a51deeacf1e20a44e39fca4d2d81a1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.35-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 97ce4aea356a46d7d21d97b02e5937bddc46c3226a6a0edb930e09699be591ef
MD5 3654043b7c2e79bd28ab3d1a64dc3075
BLAKE2b-256 0d9b39491f8dbe4b24d6b2bcd58288c58c4f3b00959698c6a1f854046892ca45

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.35-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.2.35-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e939f7bb04de54b48d7012a6890f4979ec6ef614e3104bb64b07c3b417b5696b
MD5 e905f58c1bdd8b2d43f05eca59bbb218
BLAKE2b-256 3b7fa31e6f823b7661eafb406d53d211a4c8bb9b79f3a87124ded49212db750b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.35-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcb72e50fc563818574774b2a17ff471e7ed594bd630ab7b0ca401c558ec50b2
MD5 b65f2545852560a3abc1ba0fb026308b
BLAKE2b-256 f96a93e663735039852beddd4f2a9b82e4165291b9cd49287aad6d357e7ea2f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.35-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5b4c51bcd33f206db8a707ea6d6e5b7d108f657a6735b9e24fbe759da933883c
MD5 c746662859516a22214bfd5175e64ba1
BLAKE2b-256 0da782956e238f196ed86bad24cf4f0de2a602274a8cc89d892f8c368909e8a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.35-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 402bf02f2853e44217e2934d89aef385bbd8f978fb3985dd08ef3835337dc458
MD5 1913ecbb16be5cf7e8b1def92639f51c
BLAKE2b-256 ad657980a5026d80f56999028e57dc96c215ae5097832e925f929aa7770df565

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.35-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.2.35-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 701315e95243c326fd9c329ad74b00c736e3a5fc63c78d6f38f49653449bc51c
MD5 4188611c88311ff9b93afe2c0f739af7
BLAKE2b-256 74e6a8f81984e9ca4f8324310c9c58f303763711de1a12d16fd5df1dae439400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.35-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a56d9c78523165981b56e25232c7ca0b48a49440292c013d4d84128b65583467
MD5 295a984deae029214f7f3623cec56606
BLAKE2b-256 68cdbd9b69eb67390e22bddff24ae2fc2cf2a47b4a09d454738fa60ce0d6a2f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.35-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 231f6d3da3d99497b9726f32a76e28a7327dd52e83fd321eaf98356a03d929ea
MD5 382774e6e754d76895327a22408b94e9
BLAKE2b-256 204cf6d4a2c06ede96e58c1759d25fc9fb86bd68a2839cb8bf1446668c1113c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.35-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b7634daaadf2a246c249adafb05075e0891740de81f6cfc74772dfb883e886e3
MD5 4bced166391afcb72f8d9d1c3b29e551
BLAKE2b-256 feb222c43c2106fa020a896ea9be69dae8b414f36898bae433831717c0b4456b

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.35-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.2.35-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c7e7ec16ff64f3b513d517a359c8a1346b88023d19e408b1a947e2ba82a9c6e
MD5 69539ca805d5364bd32420467c77b5b8
BLAKE2b-256 16ae196581ac823a3e3fc99868bc8bd23224415589b71972cde6fe45642b2f91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.35-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7c2e5d4e0facd5957379d4f47a355eaa5f7a4ef048c36d1911d2166930ec120
MD5 13c33cf9d6bd3c19986ebf25f7430757
BLAKE2b-256 075709f910b34e30752980848d8966d15b754b52a72fe6da7be7f41dbf69a741

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.35-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 271fc01cadfabc1b4e13c02ab668dde3b481e8f1cd6faeee54ff13cb1dba8e37
MD5 0596ebce7a68d4c3fb843a9c777df5f2
BLAKE2b-256 960cf266652de0e5a36766a95c55809e9f6303b6d46f92ee58d062700d7a91d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.35-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.35-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 90b97ee7814eda4813732057144bd6e5bf6165014903d630c6988845c761c628
MD5 5a1f86dc4b3918b3b34c3901615d3ee2
BLAKE2b-256 cde90b53fd1d967e231eec6b00cbb567d57276dfda190ea4d02ba5844aabc845

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.35-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.2.35-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d51469b4bd365682ffebf5835aa7b6acb96840ef1e79586b9e842327a249cc3
MD5 884f0c99c499b7adbb9e86d3611b8289
BLAKE2b-256 df2e8a7e2cac804be42d54dc032c7bb2e6aa78d5aaac7ebe2164b6f7f0b0bf0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.35-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05384581602aced2b912a180d084e1a22c5daf050a5aa787045c72931e128a80
MD5 0b4ae14ceee010e2c6848bd34f9dd50a
BLAKE2b-256 f6faf3ac9d8b7667c970664ecf403eedbbdc3d4e5a92d2caec2ce1c3404139bc

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