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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.57-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.57-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

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

simple_equ-1.2.57-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.57-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.57-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.57-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

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

simple_equ-1.2.57-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.57-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.57-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.57-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

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

simple_equ-1.2.57-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.57-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.57-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.57-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

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

simple_equ-1.2.57-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.57-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.57-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.57-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

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

simple_equ-1.2.57-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.57-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.57-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.2.57-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5bfe011833d4e09953718570011201f1e133cd2a33265583e1378d421e53a002
MD5 69e7f527089bacb2485aea508314e1e6
BLAKE2b-256 517a2b1b207d75efb3877e82451e93de7739230733d7099cfe6dcf2ad5f27438

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.57-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 07289c71fe46681c86681e58c33886627bdf9b5eb60bed5c147c3e0edaed696f
MD5 4c41ea9bed5f6d292f35ad226093ffab
BLAKE2b-256 d4e2ab0e95e15a5fe7914eac895264fe22e2f82eb74a5ae6eb65859c55445f4a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.57-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.2.57-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 597f06bda253a79eb56d9a913c9f4d7dba3c7726058e5eb7165e190df2ac69f0
MD5 96a642a10555f5ea58d053dedf6d606d
BLAKE2b-256 73c03ce9aab5af193a0e3816c4c0c7de5ab84a349dc6159d00549b30f3c50e4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.57-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8283adf1e127a5cf6406f44921b7ce0879ab30ddb3da62caa30cca12d92effc3
MD5 95337bb474ed79c57033eb54a39bf865
BLAKE2b-256 9990442c5343a0c8627fb1e445dd29b5fdf467781810b34fd9fe205ba624f752

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.57-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 efb37f6c6f3a5f9594f477c6acdbbba182b86513b59d1670ccb897d1dc0886d0
MD5 447d691f42e201723ff2de6961ba657d
BLAKE2b-256 30381706315e161582332620dd74d6f1704b7753b8f0949ecc1d0f5c2f09403d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.57-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 64962c8b86dc024484e6df9972caaa8b56f1f56405bc6c6e613de7f51312cf3e
MD5 346d83c7f03ca846bd1818dabf6e0d21
BLAKE2b-256 f262aea48c7d4c1da2534b423a2130f0e93588a63120d72e2928b0f60dca4419

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.57-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.2.57-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4daa7e5cb5f131163474efcab0b6b7a0fd1dfacb1035177594b02f456433bf61
MD5 5d22e780498d89b5403c2dc7af90b68f
BLAKE2b-256 6509fa2998fc9b15df04dce03e825ed2820a0e66a56315cfb10932676d4908e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.57-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 260fc38be75a55b085bdbc239a0f2154dd1e61a7c135c6a1f2e94c7b467f540b
MD5 ca7cb1e29673e6b067b9ba2e16691068
BLAKE2b-256 92781b1cb5d4d87317bc37c57a5d159566736843fd4cacce5d4eceaa7883ffb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.2.57-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 de0206ee534a495e0d8b23541b721f73acc45bd062d63545582382cde6af1d53
MD5 1547405eac6177312d27d59dec5656ae
BLAKE2b-256 808da20c9b2cedbdaec7459a619dde7cfa5f872df307ca45d1e9390d61df039f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.57-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 09fc0ace20cde77a53fbab1b7f042c959d305302dc1037d0b307389520ef2081
MD5 9c98a24cbfc89647905e80467d562507
BLAKE2b-256 911c1e8179a6955bb926321ad90b37293c7890f6dc9274956d062381a7773fcb

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.57-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.2.57-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1dac72a7e11834e085a2124c6ef854ae6ef672c03d9c53e9d3d099d328b6bfe
MD5 c769f655cecac02f4877c8daf5dbe62e
BLAKE2b-256 501fb3ad640c4506808ab6972e8d9ef4545710b9f00eaed7dcde447e113dda3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.57-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49b43310a2f856b0ed78c856b69939231618104648c30abb63e6fd9900da6d31
MD5 9bf40009299ffac719ce6ede2b7a751c
BLAKE2b-256 3a2d23bafc717e5704226eb8ecbd0305b37aff12abc3d32c154feab55cba6651

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.57-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 317cde8e080e1ac25a169184f673b54051891c397c8c397e1171bc53cd9d531f
MD5 a3c8b4a37789187dd9fc78a0b2efc52c
BLAKE2b-256 5e0daffbf5c149b129a1ee6c61ee56305a3dc3b7da55b76c9c96ebe13b6b23fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.57-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f5c80d92c23e5dfa710c7a8ecaf3422725aa7abdc69a5989e15871b9bd7d5448
MD5 a75dd2981e29c60aeb200bb0aa7f7e74
BLAKE2b-256 9726290c61789c55419b359423fda2a7fd81e7356f204705ed1185c941afdc7e

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.57-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.2.57-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc166411d0f40a2bfee0b3545a3afef23a6a64d69c29b16f11775cd262ec6c77
MD5 35d2fb31764a1e9bbbbee3bfe60a690d
BLAKE2b-256 b5799a937d63387d7a2744af79404eb6dc17b64740700fb160c1d99793314904

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.57-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 610362ea58b3d6357e708eb4ecc8daa9b2c4719c66555eaa892909168d3decf0
MD5 4f8999ac22fcd9c0c4d4940a55b3a9a8
BLAKE2b-256 f743badd14950eef32509deede71862898aa684bbe21375b3ebc80b57545fee1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.57-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 016e6f33529f938cc3a2b33e10dedb240bf7e28feaf23bee009da43d73a71d57
MD5 540533d165bb7e922b2339537637fcda
BLAKE2b-256 bb4056c9f3c631b149594c0ab8123ff91c8c90e2cb4f8cdac4c5d309cae22953

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.57-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.57-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7b70d5439db2bc30540e25a97827350625f5f62657fe40476556e3ace927dce3
MD5 03c83aaf8ff402a7bb1a93da4c1246c4
BLAKE2b-256 2c11e7f5b3c01b1f9a5dc42edd7660980d97470dcce7dcdf4c1040f2e52e92ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.57-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.2.57-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05e63dc9b7bb33f523e987349ac050e22fe2e9fd924edf84855a37c30e54660e
MD5 1f68f572c760a33bf3bc46387543cd4a
BLAKE2b-256 d194325060e1a5ea6e6c5355c0975fff5c09141ece554a8ba9ceed5c806e3a38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.57-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 894d241e54b17390a8870c0b1e5347a8ff7c76b8295775c78d37fed838bb65cf
MD5 019c0fffea55890b99bf50b1927b39ff
BLAKE2b-256 a70c07451c28c795de8b16b139e0d8ebaed0af871fa060d6c15c7f20a7a039a2

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