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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.909-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.909-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.909-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0a5c48db147821d38b6ecb0fcd73daf32b1d41709a3e7bce4a866e9c8a5c1978
MD5 a60d54869d399ad2e8b445f8c86ddc61
BLAKE2b-256 c5cb37624c4b44ae26b69404e2feb6522239899d16edf9e3757150d153eaf1f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.909-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.909-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ad81da7ce825bc4077f150520c759ca35a289878f4f6ca51a0c54a583c513fa0
MD5 c009f97eb880daf30cc71eb3c84a6313
BLAKE2b-256 071e5ced0be3a8c89650569d618baff0e89169081efd4e9cd932a69caded6507

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.909-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.909-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e15bc435ede8cc37d7927671c5998f5b6df730fed970645c931da81b9657f6ad
MD5 f5719743f8e1b4a31adcff74729ff239
BLAKE2b-256 91a5cb8833ecef7d1016fc0f8bb3c4394971799220d5749ac258d210b8e06782

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16f83d6694f15e18af2d346123a01950556a55b5d6fa1f7a91f75db68b99015d
MD5 356ea6d9804f16d516753bccdd760296
BLAKE2b-256 0a1adb368dc96f6861caeb2c72dc955a88608815c22dfdb293cb82e6fa571dc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 686fa6638b0897a0b7540289414e70330e5de08483e827c19e4600b0a74d47d7
MD5 41aec7b46b4c84c544d8f0740301ce69
BLAKE2b-256 e05af60a9745dc9466916d362598ccd3fe4247006d11e115879e237ca7b523f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.909-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.909-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 79c08cd410648cf927f438f2584e714893599277d617d66da0f1a6e1264073ad
MD5 994fb8186d8c64a90663ead604446da6
BLAKE2b-256 b54f72db089553f0712fb019b010080962bbecac725bff1c0303b232d2930dc4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.909-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.909-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 437f45a775fa3d434a9799ce53ea9ab31eb34deaa5b25130bf38e37f9993c953
MD5 2a3e9ba0d172124206df064fe60690af
BLAKE2b-256 174064151d88baf2f562126ab9f0fe4e24ae83aa007892d3382367ee974c410d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c100bb2055b63ea5af4187f7e1435aeefd5e52cb51a7b14af9e84b2abc1f6be
MD5 a9655d85b720b690d057cbea61165673
BLAKE2b-256 297df39c3495fe71afa911fb669858ff6dca6c67a2336dd7a7fc7b9e540d2cf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 92e1c6c7f6ea44c3c1dae18c6a7ef47682cb5ac88267bf686c8bd325c3a6581a
MD5 2a0ad8259f80dcd2396b012325e3e03f
BLAKE2b-256 ce53819e9512f9a21537f355f3621ee476e0f40a1f0af9a2d6cfc9230647b4a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.909-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.909-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7b7d451308bf8f9402253866bc21c3668717edd1359813adb4e772bf1865f2f2
MD5 0afb45bb3a725bb99f9037b46193d713
BLAKE2b-256 2f0623ecd30a9b14e8480cebd967bae41907737650798f5f6c9cff2ed2d8d8a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.909-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.909-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2cd301cafe988ec6f6e5dd03a9499f7f9bc1e750cf6b93f2689778e646024ae
MD5 60550a90db04007de6c01d776454a0e7
BLAKE2b-256 28ba81133a4075ca3da1814dc1dc8d7dd7cecca993805dddf480a17128492af3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f5967ba7b029911eff57dfef2f8065e0d01b122fae794dd80151af44ffe27ac
MD5 e9bcb05d60fa16760de985f9e126baf3
BLAKE2b-256 1e96e230e4ff03c464df4f89c8f04b91088c212afe0346a5c6b35fae70e3b164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.909-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.909-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7ea697dd04516b4e487a7f54546a8993167d419a637164c88c2a27a45e593cc9
MD5 423e25c3f2f9e16ddc3046a9f4d6e6ed
BLAKE2b-256 97f8299a60d5628121982fd9c3f27164eea4b1eeef9d6ef7a81c4f3b9aeb61a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.909-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.909-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d03b47bedfcc4434fa8d95a3e44976ba24a40e17f022437861066bf0638aa093
MD5 75eb1c5effb0e6486feb856d0bdd14aa
BLAKE2b-256 619466e75ce976c17a8b03b3a5fefa62440109cd71ea96e5d2512538c2d1ccee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.909-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.909-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8a5828e15cf4e5e3827ea1054b76cc758e47e03e53e060a7feab45f446ed18d
MD5 c76ba6e8fde128654ff8eb4b25c6df18
BLAKE2b-256 3c948f642a2ded5d4a2c97c66d4a4b8152110dff5b887c274276e2a26ccf8be5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eae9a6b28a85f33220517109285d86d25a18a03e4a950f74a1669e3b27c7696a
MD5 194887b1513149f40e32a98f9cd5d83e
BLAKE2b-256 46f5c6d26ab1659ca93f5f564e5601f9f32ae9ad349a29f59fa182e2dba7bd82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.909-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.909-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f89d479c0538ec50669e42c90fca8b44ec5fe394a3f2fdca8abbb283d0c14371
MD5 52208eb31674f8df0e5e0cd625dfb250
BLAKE2b-256 4a7c75356c72b0e021f9f5a86c91aa48bb22339f8e4f644f5d1b3130d6b24896

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.909-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.909-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b198b437dd86247ded5109339c2ebfbf8ce8a382b374a4650a8803ec099e06ff
MD5 e7be9c62de58dd15cd19f4c566cd4ad3
BLAKE2b-256 5f9debeedcbe35be7ae2a7c89369cd5a21907d3fa19e3f9cd9b10c7e8e85b693

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.909-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.909-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7cec2cd02bcad2f14b15fb7d3fa8e15198dee8f9b37749992f51f394464b3481
MD5 f2748cf1d5233d9db90b1641b6d32053
BLAKE2b-256 3aea065665b8e2978dfeb90a465113f232c754ed44fb43507ed1bfee74c0771f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.909-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 416b7ece96662100e92bb98a1e95f43e485cd910c737b583e5a745352c3deefc
MD5 d471cca8577d20b32e50a919712dd87a
BLAKE2b-256 e620097ee4656e29a4e114631ffbe04a215a3f998c43b1b7f7972ad1370d374c

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