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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

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

simple_equ-1.3.4-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.4-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.4-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.4-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.4-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.4-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.4-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.4-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.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 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.3.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4813f5b7d353f972b73b79ef0bc3a5f809594f4dd43e77112cb6d23199f6bb34
MD5 055590141902be8e451f6d777cf76d63
BLAKE2b-256 ce92b5123efcab6eb0b5f0266974b05e2053a9972b12ce0a303205a79c86e79a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-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.4-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 59df8b75d9caad92c0909d244f79b7a982800d240377c0bc8ccf2e16c513cb98
MD5 8bccb21fe6322e6fd4dccc8fa813c314
BLAKE2b-256 92fd8b79cbb9acca1acb139ca65b18cf8fe8b5121258d89bd4dfcdcbdb6388b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.4-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.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9bf0652573546c404bd60efc4411f975953c589717b9afb2adfefc9884102571
MD5 828151d671038382a8c6119495923bef
BLAKE2b-256 23f3c356337273fad3cc12d5600358633490de0c876c4502804de7960cfe481b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4e0ab1008a2d6f8d19b107cc56f59b1e662f658db04dcf4315ba6e4bb18d2b8
MD5 9eaa0a5a91ac87ac86e19bd3195915fa
BLAKE2b-256 2caae39a531db3de065215d05bc5313829041a6fca1153b555a25be359c07556

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1be202cc70c16a26862f329d636876b3fe204b70dd5a4c6fb0db78c5aaee76b7
MD5 04f8c59ecf6622dea660aa7a16af77a7
BLAKE2b-256 4d95770532030736d8931fc448d6bce8ff84f49c1b347acd885f520cd01bceb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-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.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 edef6d7b6554c74acc683fb3a08eae6a98fb39b6cdf193a99daa16e96de81891
MD5 a912d70422100ebe5601c00d3883d360
BLAKE2b-256 281fd42225f004d581681a28994f8e9f1f487fec7aa78e1e8c0533cd87d8ef1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.4-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.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0bbb03f4bcb0a31844473cfac2a6e482664f484c8e1e7b70be61caf9c4911f7
MD5 ba72270e62ff4447fb6db1f821a16698
BLAKE2b-256 ffc349d26f509ba9ccda3fcbf4f56330bee8d83014bcb85337de9839cbd1b674

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6551e00e962fffd130352f4d24f76f98f2911f56182df3c168cb235b2d76ef93
MD5 ce75df1686bc014869b53989569fdae9
BLAKE2b-256 40873c1906c291af329ce1503596a7c749a583fe148b5ec9f354fd91c72fcd16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.3.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 82ce69d5731d708247480bd8d011a1a272745da7d7e3785e2cc7f49ebfbf79a8
MD5 2bc260b23e39ced02be1159cdaf35e7f
BLAKE2b-256 8e6673d501f1a24ef6d31cf827ae42666191d7c3dfb0cb9c30a553ad1e93ac56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-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.4-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 651f8293c8737462a92ec98da4448f3dd043992fb28179e09494852df0ed5282
MD5 bf0b17fe905d416c76fb5f898f3650b8
BLAKE2b-256 b749227b06064d93e838a21022cbd0b38be101fd19a913487a880f3a1bc09578

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.4-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.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03bd3da8f9a678a9bfdb1de1218fcd61f42ef350e1937fa5d24865013c32dfed
MD5 3f8d8c2219f678e7d8771f13a42d196c
BLAKE2b-256 b38f3e50c56b505a0d2e8a2a5a53219462f9001c9c01c5b0b061d8a6aec67ada

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 309e33197d60ce78a29f217b8cc112e85db0e2531d9ae1e354166c69d9b4a532
MD5 19709c5f378632ed1f93ef3a90e34e88
BLAKE2b-256 59d674a03cca620bbdade34380545e9b9702a610920b3caeff3f708785d43123

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 53cfd4a8ab67fc4cb5e5f04e18bed0064d1231680bf42d400349ad38ec00ce67
MD5 195cca62a72419e78bac5180cabd2374
BLAKE2b-256 45095b9baa848b4dd09af51f0027869d2197e313b68005a8e2312c704aba84f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-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.4-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 683853780052af897c0d4ccbbc729bea87aa10e551b11f3c0d0c4ecd8829d6f9
MD5 ed21bf6f4ee809526f98d5ad12eb92c9
BLAKE2b-256 c9b177eb071f4f430b3bc11fd6c88ca65c95cb29a60a3c5d010b80c1310ee6bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.4-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.4-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 346d7aaaed3c9714fd797de68b546ff969f045dc698e9a36ad32a9ae87771993
MD5 9b45d02493ba99a8d9aaa08167823c3c
BLAKE2b-256 ff981f3ab09125340b140f3e063889ca66ff28ea3b057296f39345def589e6a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1c450368c3c48b0241cf858c1e99970a5aa20672c9e2fdb8b94fd29706222e4
MD5 513b989727f48a89109d788c43bb8b3d
BLAKE2b-256 09f8c765e03568f4ddb2f40003878ee30b97686346249378d21d81ea151f9bd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-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.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 69c1a799a37dd7f9b83fe52e1f947b97b65bc3c63c6d2fb14fd374133fb9b5f2
MD5 404c0cb964aca5b809625b9271066772
BLAKE2b-256 a7a48d344c39b24e8102024fd3de10907f481f1aa59b9b697404dbac42465f07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.4-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.4-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 711bb2b3418826a29515108d79ecee914a96a175ab4c50d1d54b1eb975921705
MD5 aca7edb726d3bc560656e1ec0e480656
BLAKE2b-256 1bcc173d498c20e8a534dc879abfc0ec71ef6a312734919ab063fb865ddd49e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.4-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.4-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62a545bb2db183a6f694ce20a35b672025c960698e5f8c2d7349f20daa281675
MD5 b4a7fb13abdb12f94228839b26afedcc
BLAKE2b-256 8d6785e109724a6dd261f5da0b22710b7437ce1cafbd81f48bd4e18ff253bf3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90829e38dcd2d686f202f890fb4bb57da42626f62984c2f8a6d2bf343e9cd546
MD5 290d56f87f1b9ed160328f4bff7c61b0
BLAKE2b-256 22c03ffefbcd69da0d26e273b1001907e555c457a090512340c5252547ac2e4d

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