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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.804-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.804-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.804-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c7c53c835886937a90393274f87d5505032444744905901a26aa1251569333c2
MD5 38d8834c473159355f6e4f5906ac2b57
BLAKE2b-256 9f40642349009eb76c6408669fd87aa978df0517da4d33aa5fa1b71208bbb9bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.804-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.804-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7ba5a411f8622f9760545cfabe62b9a01a0105b96b745fec0a37f5ce22779b32
MD5 fa5d472f0398ff83337bb0d32110477d
BLAKE2b-256 b0a59a93f74673dabb746b447a9ae920a0e90b34dfd54dd548ecf09412bbb4cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.804-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.804-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03f7964207a5e8eacde8e2039088ba584a2f98b7962eccf77f2df57900574efe
MD5 f2967d4395cc822d579fd09b9638e6f8
BLAKE2b-256 9c7175d27597b79b41958565310b454c667abcbb89ab36a5124abd6a00e8c7ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8ca354b159c264114b87e0e38b4e75a6bae0f5a278199ca736411ecad9e6266
MD5 baebd8bee90200f53926d8397c234b84
BLAKE2b-256 127d86bd97ab53a0c12c2a23dd5a6ee043be6049d663aae610170999b97909c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3a5596e440d6204e880b204dbcd4bd453902b8ba12210bbb9e8312d529520522
MD5 97fcb442ffe3ec74cdc13aa90dc9e984
BLAKE2b-256 794fc877694f0edec3a60b2995bb57492fe91dbe9ffb047e9988c02130bd1eaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.804-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.804-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d07c8f73c0ccf3438aa0ef8ebfbe87c9199703180848247512b4f28076491af9
MD5 b9b8caa8b0ace81c93e5fd279c848f6e
BLAKE2b-256 16b39a19b4ab69321eb5f09c6b7419d0461d9be1b8740fc3756fdfeb1f6feb1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.804-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.804-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 545a741ee1382036833f2a0199ce27156a05e9cce4defee5237d76fa8ec8219b
MD5 49d93cc7d4e5bd390307f4fec15fb174
BLAKE2b-256 a3670646e1d16664301036d11472d415e48c080571b9a847e69e53f2c5b7a524

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 215c9cfc59720e25db83e204a8955028a855c55691f4b502d0b6b742fe695a40
MD5 1726f5be76ed512e9b991834138d0a40
BLAKE2b-256 c4e3c7b0a182ca1d781694473567e90d23e5e1945a198142610af34c6b0e315e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4695e49233e6efc5fb7f6adb29935019e98ab1f4d28716578133fa5f41346733
MD5 2dc9c3939a4bce09946cd32ea13c7427
BLAKE2b-256 6d897ad58ccf033a6d80c59def2b61d4dc3e42c484bd4672292a5ba76e0352b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.804-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.804-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 943c7dea4dbce3299655d556287fd48819c1c88b301023a78a612bd553305c1d
MD5 ba394334dc601b074f58262d98783cdf
BLAKE2b-256 675c308afccb40045b9b34440652e0ab4baa23207daf649ed4eb821cda85f616

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.804-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.804-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fcd3d629280817dd8e77f839aaec422bb259577884c207df677bc03bbfb3b3b9
MD5 3bd509d583b8a929bc387c410376dedf
BLAKE2b-256 e55df7c476936319194f818d0ae20b7d8cac60ae73947c44662e6b2d4735a85f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d0d93436aa4851180fd096396dd1bc2362b016cd96d8c656b9cc2ecfaea8569
MD5 c89a5a8b65632be74c38b7599937465c
BLAKE2b-256 8c9c8d1232b475584decfc1f4a9d30e85bfd6076ec3bf0bb03e90001f1c21afb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.804-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.804-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b2e79d7024bd4363c9fbc10c5a8135c810ddefa35ab89e8ffac2fe5a5334f28f
MD5 21241e990b0bf37b9d195777949dbae7
BLAKE2b-256 f391228057c1754f14f01250c148e8f42fc5b79a522b5dbab186fbca55e23a32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.804-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.804-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 191e0e09311a76290f8d631aeec2467844395824afcf10de254bda3708a681a1
MD5 d7a13521b2788698dc355cc39f5c6623
BLAKE2b-256 22beabf7fbbdaa0d44f2207a3ab3391bee88516de98aebcd3ef6356556e2dfbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.804-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.804-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae8c2e59705006a6cf478536d6bf67228942a3d0bd008ae3cde01a623bbfa8ec
MD5 e3088a19e0bb3318b34950ef9c4dbdc6
BLAKE2b-256 9a31bbb157ba32d2affd7e1e62eae4d0f2edb356d6820889dee68db4eb472143

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48d2b0ed9602a232450aec12b9467fb313de5c235802163302e5854c79470391
MD5 bf6138b9a3635075c05ede2355549600
BLAKE2b-256 21029fe287883cd95b3649162613fd6bbf256c9ce8aa69c5c9ccbb922330fa74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.804-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.804-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b8a154924c6c95aa4dcb1c27075b59bc2efcb616f7f222702d2c107c6fecb593
MD5 ace1fcab2b1232f7c56de4c495f3560f
BLAKE2b-256 ec5e569a83b27399a6314e3b998f6fd261d565e19eb93ffb4a0081c7eb303b80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.804-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.804-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 793ab05031b9d11b85f3c799e580f23f035dfd20b1bbb556e4ba4185047386bb
MD5 015402c068a70433d146fe48c7c8e7b4
BLAKE2b-256 efa9bc8b77f80408cd7b51d4e2f7402d9aa60b7f71812695aa8919d79a736d7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.804-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.804-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd29bda1d7c62f4d83b1c2d4881b2abb509b533f8b1eb23ffbefa62c000e6364
MD5 95638d3de59eb8fa38144801ef7d83d2
BLAKE2b-256 12b0061c1bfe6fc7d513c1bb55d77de13d83a5caf6040bba0a296e015691e9a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.804-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 321454ca7533d5af32d8d6709602bf485a170ed377b7c8d3c677646eaf5b824b
MD5 6961aba85c9603fafc4b38a8b4e73d7f
BLAKE2b-256 b96b2b6d5aa91544221acba73a68bd1c03d7896d361dacfdf38f8972931ce32c

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