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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.702-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.702-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.702-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8db3e13798176e8a096c6ad7a6964b7dbad3119047b4f46b929990b29edc1628
MD5 6c31d9394d915321c6379845e4ecd0fe
BLAKE2b-256 3f177a7163940b4e5f5041fc1abe2d110b44652a8966b65c95894d9e0e7c0a25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.702-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.702-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85dbff089136925bb6044df4f9f2bcb656a3ef303684846cc9a2a5672b131d9c
MD5 f34f02f6c06b3b1390a67950be38e9ff
BLAKE2b-256 cb7eddca431f71ae9c610f0eca65ee2e0e4fb420ea53ac097600be9468bb981a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.702-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.702-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12f65fec97b97a87a8607931e35175e42394e6b45f0dbd22034ff314bb06e133
MD5 a54a0649b89e2f8453b2f7c9fb2cc7f5
BLAKE2b-256 399b1b31c374e281bd53d6b1c7111b7f71ec53d982f9b769f8b584e91232582f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 499bc4c4e792f3ebb2e67ad4618b4c500e8642364ff743cc7fedc7b8188890e2
MD5 4bb57d77b36ff98e9500c7fe2556efe3
BLAKE2b-256 3acc48b6c9c5554df9acde829856f4eadff6a69d1815dc2e9e0a26a40249b726

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 86a9a8cfd9891e85d1fa005b0ad94c69fb7405555aac7e4a70a97dc75f47a2ea
MD5 7cefa7b0d4b52c479d0841a62536ebef
BLAKE2b-256 b767ff7a08efb32a778a684268cbdb9af4cd10f2f387c431bd4e6637667746d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.702-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.702-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c7a50c1a9d3ff62693f0cec0341af5821c352e67977eb1f5254f568af2ad1945
MD5 c320b70e24c2ef5a37c9514171639a34
BLAKE2b-256 7f1162cb7d4f91d6fb526abf9814363b6353c0faedc2e05e38a07e195a2be472

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.702-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.702-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9636773aa4bcb858b208c60240c732c9f0380230fe2f0da121a25c6ea6fc63ac
MD5 e554c9e32e99e50a265e6dea7489398d
BLAKE2b-256 85d9a4f40a7705446ea53cd8dc05041128c6c7cf6b5adb2c7c31086b593d40d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ea32677df943055dbfe12596a3cc45199f3e50d3d7ec6ac5f6ac531ac4f1340
MD5 4d51b40be77d984b8de1446dbea5733e
BLAKE2b-256 18d7085e36cf312fe9306cb6f346da9515481f1e31aa508b463db2a49f1a3643

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cf3d36e08b9762bc237d5630934fb218306b8d403625bcc103e74a60469a0e64
MD5 a4c3e7076eb7bce640ec60935416785f
BLAKE2b-256 7deaf8d5391a71fa8d5c7c68e4885435af7faba9adc8e13696bb3d00e61fc5b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.702-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.702-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4cb76924230bb4b9acee1c28ca1d739e67794a2260de78003bd4b03aff4dab16
MD5 1230d497abc1f11254833eee18fab6d0
BLAKE2b-256 e27185e769d89dca70521ea0c86fe43a4f2edb029f2614ccff2d68bc65f07519

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.702-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.702-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6b8b3a51c06237bc0fe0fa71623e9875dd1fe9429c78d97b3557961a7ba3ec6
MD5 83378b01592d1b99f3802b192471f260
BLAKE2b-256 135e370ad31716acecf22abb927371d2e270577a863e8593ae4f6c24d19096a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a8ae3750d9c96f84b5644d4defb269391d96675e6313a04b8f789bd13b830df
MD5 116608c4e9597119d5be4bd28398eb86
BLAKE2b-256 8435f7fe109dde0f4328b0851a8719da36fa6b7ae17bf9b2c316fec7aa562885

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.702-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.702-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9e73c1c17fd988675bbd92e3ccc0bc71592ffdb66b80b4e6b6ec766ee5fcef24
MD5 3b4664398813b7b1edbf1628b454ddd5
BLAKE2b-256 57b3f22ee8fd3611fd5ad613f722e1332748613c8328beb9909b872fdd6e34eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.702-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.702-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e3e8f86757dbaa8ed9225d1ad0cbc5c7a79a3a0a601f045b096fc4a9e3dc7ded
MD5 e6ad3908b655f435e0efb74461263b9e
BLAKE2b-256 492983d877d6f0edec665dee559ab57717c55f5712b459dd270c46905daa7eca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.702-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.702-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 345b72e985136fd742e50e010c15a559750d81a81c06676a6b48d51c82c32dee
MD5 32e309bf872b10d56f652a8b8389e263
BLAKE2b-256 f470b7def67b4156d63daa1b6295e17447c0aad2854e9c4fad6eff1b3845fb98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fc8cbddfb7167dbdb01d831a0cd25a3c1d9ed8256397610fb5140f879ec0641
MD5 cadb9099cd7bd26e744911c732d02e0c
BLAKE2b-256 b4c7b808badea5b5b708c023b7e3810503735f4397f1b0efb223f6248bcdf21b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.702-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.702-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 92569fc8b11c129eebc52b2a498f012213197415ec52b4d0ba7e5261a3243a34
MD5 327bb5908455eee4da2986c3b19adde4
BLAKE2b-256 719798fcfad28e0ebe212c1c8c19f0141961f5c40feb8cfd5b4c4cd7e9826b71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.702-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.702-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e637b76f3f7cfac4fbfb4183f55da852ce4c1a57a8620a7a560aa6b568370c36
MD5 ad7c59d8745526e3ecc00efa45936739
BLAKE2b-256 daed96038a3748c54fd321f234402fc22107eaf10ef2306c23e1fb07342549f2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.702-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.702-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8148ecbc80e0b9e27fd58fcfd2e7a5876427e98b89629d0b38ad1df61382f903
MD5 60db6a6ef73dff4fb79d207fe249323a
BLAKE2b-256 c79c5dc8383fd76d7edb859cf376787ba82997d8982e4ab304f76b8afee21a05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.702-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7be4c1e758bd52987603e9e2b8587f242d06fb13adc682b120c46b024ed1ac2
MD5 005938310479dc78aba51ad73e93b2a9
BLAKE2b-256 8a54b0c64bdea06580f2285192bfb5099370eb87a7281abe9d200da928d72cd2

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