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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.700-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.700-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.700-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0dbc38325cc9ee2f7879c7a304ab7e2edc0a926085b52d6f08812c153cae3022
MD5 4f9f4fa880473a3faf85487eee461504
BLAKE2b-256 f544076e0570e261f28b7d0e57515c7007b494f57c498fa7e4655ba976c089aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.700-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.700-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2fb51961d972824aac52702b830cefd88012ea2ec015634a40fa82620a000cfb
MD5 66a186f781242be387cf9579320741a6
BLAKE2b-256 f92f95e7007b256af771380be782fe3455f8ca1369533176f8b4d8cc5ea71e0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.700-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.700-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef2108578794469da745d37ebd3b94243be2a3cb4bdb7d6d8a99b66b3af2fbfb
MD5 d1b2bd12ffb23e344e1b75083be1d687
BLAKE2b-256 7826173e909b753cd2417fbc173cce0dbb31b0de2365033266f60f6a2bde7b69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41e12832509d7a4bc0dbd0931ad2c3b2ed095972ebb56cde17b4c311b9d29b9c
MD5 485f1f4dfe752a0b9fdd3791f797e77e
BLAKE2b-256 5c28298b429c6371faee49856814759df5c91c157efe2108735f9eb74f05cc8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c228a65720091912273c2899a70ef661478b3fd49d0977b39f93af9995456a73
MD5 ce020f58b38434210dca1f1bcdc3e674
BLAKE2b-256 cb449504bd88340ecde22085a98f816074e010c396aaa1a4dcd7a8a44071700c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.700-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.700-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3a84906ce944f90e5b4ac545cdac78916bbbca1b9f3ab063a54a5f1b9e587053
MD5 bb6ee529c4ed44022bb789f4ed7d1f9d
BLAKE2b-256 23e94d2a0e2ddd4fbebdad546c88ba1bedb0920136b80b218cd172641d8b6108

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.700-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.700-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 033b36b758d564764e8d20fa701c192e49fc8d12b84ef77295dcc36cd2f679e5
MD5 29a9959ae657ec153d25cb5999ffc7f0
BLAKE2b-256 2a0f6464ddd5a6b58cf2118b18d915300a34e8c13ce8876588d3cc4bdbfacfed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd05f9059e167b79ea0b95f7ab6da5bdf7e66e42c14c1dcf237f6dfeda1571ea
MD5 d27aa79b05dfa360f1a4244706b7eda7
BLAKE2b-256 f70e17801e1c70c1bd59c30602c971226c6bf2178648eeb8cd177c6ea49fb523

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c7db0a055e5cd5dfdcf43b2f1c39ca236a7c698788a9f9e5315e66519cbd5f46
MD5 ab9ea70caa3a68c454632a1d4e513093
BLAKE2b-256 f24a09c2194bd1095d492513e1e3fdb66eb0e430ec8b5462558f3c46001c0151

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.700-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.700-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 397934d4bcdb362f324cb914a6f7a4ef09e0a3c65db6a22cf6bc21790affdd19
MD5 c2f21f074d89c66e54fa06a348a0503e
BLAKE2b-256 6ce404f1d8e8a7defc63dfe2e81a6ce27bf0a77826fc3cc99551895d5ddb4a76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.700-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.700-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b303f8add89e221d60d5aeaaf161f50034fe506b85a34521685da2705f04649
MD5 5088cb60312d2b742a1ff7a4d58b8fc0
BLAKE2b-256 ffed6aec70b18b07b9d56e3304e4e254e9fc235570a90198838d829888ebc630

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16be76281bf8d85ec60a64fd77d806d44f84b454831480fec78446e3c75e54dc
MD5 0e9947d8e2ea5bf1001a9dc93a5dd24f
BLAKE2b-256 f9f54b98092ac0a4fa5cdd4dc55ed6a7d142b98a5a6ba388d867a46b14c35041

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.700-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.700-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ab5e775e9deacf4e929bc1c8ed188f570af67987488297cd4cadd0101f3ee450
MD5 d95a2d5da63721dad35580d70fc03380
BLAKE2b-256 ba2ccadbac49f68eda354ad2b1dcb20a4071cb3ed7b46d4fb5e3bc249c4a791a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.700-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.700-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 532f9d4ee8c59933d5a9547a615751227abc173c9bd2c529df9fd18ff3147d9c
MD5 a788b63243e97dd8770cbac8c5720552
BLAKE2b-256 9c41c5ef66fcda09196ffab2a2d15585a8ad0a6e053ec1cd32ff3bbc33e17cb7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.700-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.700-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 08f577e32f732bcafa7fba6ec37903abda83b702805c8f7bdaa28837206c368b
MD5 39b0d4c0ecf5801d8849290c10202f0f
BLAKE2b-256 7140fbb98d1b00f01e25d9528fd651a00560ab2cd43c8d394f662678c5f3a6fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3a953542e8774233d7af3d547989065075eedb37c5996e11580eedc1a2aff12
MD5 4aa87dfc113f51cde92d52ca7cb052f3
BLAKE2b-256 a7bc277c5b5946264f0f9eee96b644ec72bfac5cbacf03ee00a7aa02dc44292a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.700-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.700-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a3a70679bd31b95f66884106c7d11b4a0e47248652e6a29ef5791159c314d82
MD5 e70eb3b5b53a220c5a9dcf4de01fe0c1
BLAKE2b-256 c7931a1909eb72d6011addc1665f3fc7e9306f62ea619a6a2c644ead2058a3b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.700-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.700-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d70fa73e776bfa5fbe9d183b1902bc55a12c3a489f0436a19e29bf0fbb32bae5
MD5 9a99c004252088deeeba943a3feaa51b
BLAKE2b-256 0956b6937f33bf09f76892916f8ff2ea2c7372174c7853f4a0287ae37b82464b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.700-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.700-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77db42c8ed8893ae44634a06f0cd45f4f8deff52f4f7f67f91a102c5ba374d4c
MD5 7bb3b296e596c2e6fd3f60eafcf9e90d
BLAKE2b-256 a9a81ef9e78f410984ecb448fc6ca10ea508bbe6bca70024e83dbe6c454c8640

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.700-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d41e4e10c85ef51659565d9c8dff9cf74f7d60325ede0656028c5d92f024aa9c
MD5 bf399870f57e61a2755541cbf6b713ae
BLAKE2b-256 a4fb1cfd69a9c5cf95beab1a9ca9b353cba0062c3ab6a5bc9a2c4a5eb07222c8

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