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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.771-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.771-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.771-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b61b8cecb48ea20410866160f6a2b2239fdb45a8480c21b9ad7ae38c3a22b41c
MD5 9cb4cfc76ecf258a6b332c14ccdf2c99
BLAKE2b-256 6ae0e7cf6b09f979c1cd07ccc7fa6970f4453820632823aea9527cad39302668

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.771-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.771-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7b4a4ee8994215b1f78adb90fac9b0a7e9df26d6a98e1695164e6a1801a0c4b0
MD5 8a13f6caeba053b0a8ac4e69973da998
BLAKE2b-256 18792fa21dbc7ae1e1a3aba45f037120db61ed46badf970abbeb1f67a33ce875

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.771-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.771-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b334b2613ea3002c0f2f378ce0e9b7862252dfe899e088e000f6aeaa07bce740
MD5 fe7c7d6cadd1694dcc12730fd0b3d43c
BLAKE2b-256 d000ebbd5ecd96eebb78d21fbf996e147fc293785ab78ecfa71d28fb66d3f455

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba797b2941eb34c427c7d851454d27be6c596257bdfc8dedfa532a1c3c4ab956
MD5 9b21d42564425413e2c7bb9986ee8272
BLAKE2b-256 de6ec03fc149c2317d39fb31c0cbd95cf9e77cb2eb6cb5cb53d195a2a0a7f34e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6fa76aa2d5ad360bc18e47ce0d735108a0d13c31c5e99d9e39675f97ecd236f6
MD5 ab815961f27e2017286779c57d862984
BLAKE2b-256 7fc8e2d0221dc46abba3b2a9fe1f8f9b1c8b402f76e98eac15db42d3a6402c60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.771-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.771-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e5c0010448dd4b6dbf238eec29f9e919eeb71828863ac96e8f33d29f404131bd
MD5 cbf2228b6b7dd3c3a961511eb5999f17
BLAKE2b-256 42d6e06dd3c9225eea130ba95c41404048a6d3f673d3f0d178975a8028960f44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.771-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.771-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 92dd02d3915858768d243d8848c64f57da3ce4e8e779abdb56cfee6aa4dbf8e8
MD5 cd737686f024f738ec782e8e3d76807d
BLAKE2b-256 212dac50313b89a659d1bbdddc8c24d8298fc5322f36630c2ee59cd5196f39a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f27b73dcb6e82234a0737956847af2b2a0192d3cbeabd7fcf92cc5d168513dfe
MD5 3d6a9102b4cae43aabdd4ac9e733f5c6
BLAKE2b-256 80ff18aaea92f09fad69d6ff513daa9e14185bc865388977496587a0899ea99d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8bc03b113e929af52bf6376be9be7f3ddce7c19acf5d88ae501451be7ccf05e7
MD5 cc17821b76902bd3c8b8c3912f048808
BLAKE2b-256 5b41919205f4483acb996ba04b2a2e6f80ac9e523732533c5620a0f78fd09d0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.771-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.771-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e4b9091e4449aa40fdbd2370e981d6fe5fb01ba6b0f5c350dc908155ee8fd0f7
MD5 e7ff24958dc0a3fcd451ee8924ba6ea5
BLAKE2b-256 ac4272035d0c3db18fb4e4639acd0c33757a2bd96ea00f60c4f9e6ce96adbb9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.771-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.771-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd2e4d8afc4dea8d752da1b2b9fd6af27c766d9546373ff3923995647b42c8f8
MD5 00ebf24b7e25ad4371eade128a6066a6
BLAKE2b-256 23cc5c5ee298294c5ea6e1cbcce808d0d841b553a4555f704a3a96481c709d26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f1489334270a890fb6c0ad6d02f210149f111aff04a8c6a06d066628eb64580
MD5 6088e784afe2e9f1268e30291fd86980
BLAKE2b-256 2b64f907f12fbf19632babcaa608d54b7cdff5ddb9610d12b9e8c6f3c69fd307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.771-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.771-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 35e4f454004a2cc4a2cbbe853caccbfec71f9e9aafc725ba72d535d0605bece6
MD5 59f1639c5883a913427dda101d10cedd
BLAKE2b-256 93885127511547a26e33dcb18bca4f7637f7439791d0a187b1fb5c269c9dde6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.771-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.771-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 722a6a529f208f21a335105d118faabb33af349f7b4251ecee9d03c3be4f4b2e
MD5 21728bec31a09be5961fea9f1f09b331
BLAKE2b-256 456f3f83450b77d3354b39c7ffc05ab71f351ab1bb421d8449c59ead91f4b67a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.771-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.771-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1aee25d25c1d0b16772280a2431937edfc99e6bef6ad763426fa94f26f98e435
MD5 4dd686e1d3ac1dc125f5e19c85506ce7
BLAKE2b-256 ce81681ea174bc27a1fbd4438cf78a60fef08676886a7e43ff8ed3b2fba44668

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 292fd5d11f20bbc6a8619aca06f03eee7f6275b428839bbee4ffcbf9783c9ab2
MD5 81a277320a9af1b00d88a03b2a2f48b7
BLAKE2b-256 603fe43b4fec3b989cf9a288a6c2eb94dc82bf7188efd88a3eead2364d8ab33a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.771-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.771-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 28640c85c92ea243b0a3901b94e22077b528c2958edf39bb62fb33d70977ee33
MD5 9113045580ea253925df419d0ed97fcc
BLAKE2b-256 4d673800658c61f13356c1ac7b7f1930f73485fa95166d99c8d89d2da784f977

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.771-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.771-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d95234ba8330e80d37850b8d5bfb073529dc22b64244dd04c8b58423017c219d
MD5 8762eb5b4fbbc12f126bf4924c3b5d2d
BLAKE2b-256 618511f343fba2a5d9ada0f6b87ac8d10d5472b0a2c3515dca0a251a8c922103

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.771-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.771-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f997bba4c9722042ed5cda820b937ae044146f1678df3e6d1d4d0562b13431f
MD5 b45ba722d33d2a1034c9ca097bb336d0
BLAKE2b-256 b6c593fbe19dfb712717b887582d8710b2d9bbdc97e2e5f25df70541d976682d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.771-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5807e44adf8cfb8b8aeca6e8e4c81c511f141175bcb296844e73f52bcf6f4335
MD5 ef8032d87e19b28d1791179f59f0467d
BLAKE2b-256 5cf46c5b68b39ec6159b81bb82c5623ddc8a21512e1d6006de5b58085f93e535

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