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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.407-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.407-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.407-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0b01e5e2f7135e7eea5db3bc5273dd86f54bc26a621340bfc33a0bb061f14035
MD5 724fc7732c291d937ca296294ef264f8
BLAKE2b-256 bf5cd309bfdf735b23df36d273f4095e66db009a4fe1f434102539463295f623

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.407-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.407-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4a7466a51e205087367a2c7c567e5243fc5cfcac2831556dc5af5b0aaba978ab
MD5 844eaabcdb510de8e3dc7a761d0ffbd6
BLAKE2b-256 04f102544e5aaebe6c4036bc60bc6f8d7c090a0d6da14e0ce3200f2089bd1e5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.407-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.407-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4502e0ee90e1f5bbb0999d983edcb8d41818ae1aa80a7a37385ee9b43fd1de7
MD5 8c2cd651318ad880fe544b95ca7a791e
BLAKE2b-256 9a22ef466d4aaab50b8018ee068612ee5e2346b714623cad8709e375e32ee01b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61c53fa467effd8d84314715a892811bff22c6266333f109be8c994523c2d824
MD5 f0ed4cb93a44de3b68699d01387009bb
BLAKE2b-256 54b242f3089043d345cd32dfb6109ce477e9e96f076d90c49797355290edbd8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5ed7bd4c0ef873bd94b2c91edcaaf116400b21794aa7d443d0ad20c18d413e9a
MD5 a394db25c4854efa0a42d5a8d0dd7d15
BLAKE2b-256 60a8e5c632f0cb7b07d07687961e5bbbd4671a966b5090340b30fd15c98e834c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.407-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.407-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 475eccee666e146521cbffe725c564c5c1ed6f9b03b24bddb870d2ce6ec5af2c
MD5 d10f0d4155601ff7528aadcfe641d236
BLAKE2b-256 fa1c77088edf666a119960ef60a5d554f34c7cc42390fed830fa3a2d77b914a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.407-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.407-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88d6b27a919fec930cae3f04feab54028dc4ab06e178fabada8f5cdb195ac258
MD5 d79e53569fb807b514661a8c353d0ccf
BLAKE2b-256 50445c8b0f39c915a2163d7d6330ad8aa10cf2ae3a54f7d5f840e4bcb8bf1da2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0546e26f5d64c1bebfa4179cdd209eeec7a1b3282eef3f921cf03c3b76e16b6d
MD5 3ddf5de87909c0eecee9ec64ddc52a4e
BLAKE2b-256 cded8ba566478622f2539b36a8bd1462dd3104d27b97101a295c1f9cecb323fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 40fef3d4604db797dd1aa1190cb641bc984e0ddfbffa1fe007a8c7706d4d57db
MD5 1baaa69769d7cf14314c515bffd7fa51
BLAKE2b-256 9e13a4150450db93861858c19fea5e8332798d5b6b49fc1f64ca575a2b1d16ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.407-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.407-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e28980a2cd7ac3aa5eb270d6fb638c5be58237a7143df12c3ea12ff362b3921c
MD5 1b07c3fc6d28b3b0b3b5e8870ef962d0
BLAKE2b-256 bc207a517d8f5731f7d8160291bb975756f4c5c40f3ea8f74738e5bd4207c5be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.407-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.407-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73975f50a06c506b09f460a921c77a064204dbc6b2852d6b857eace44ced10e7
MD5 3a295b78956840d7078c175e9d2a3129
BLAKE2b-256 0006658668fb09f3a0013c852ec30ce5c285a4bbfc191b1617f01544355d1a3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67eeca4be6a572ac17332129d8b6a492d35e8418a7fd923a5e901fa524a8b4b0
MD5 bc3dd140109d38ac1fcc8a27d4840e7e
BLAKE2b-256 09b58b110f53714a3b5dbc3e4b45211e4a8dd95cdd7b2c33c86ab17c617426de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.407-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.407-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 57aa51e290624c09d0d4fce536e4c0e9d7d8d02ef87b8fe14405fa5c22cd703c
MD5 a27a4a60d0b7a7cfb8cba4fdfc2b8d33
BLAKE2b-256 b0dd9ab4e3fe13c386b10fb2b13c2045b1751c87845b7d13fc87e88fd8dff4bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.407-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.407-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ee7708bf2a80a9abd61c0a2e03e6553ca1527573632bb6c419d418dc528a9ec1
MD5 947be138ab460f9ca7e65afbaf8b5937
BLAKE2b-256 cae37382404c7d666bb8c6bac6625d609e010f3f9f0a7ea6f6285af3e80dc644

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.407-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.407-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22448262b0391e7a44ad939f5469e4219bf63b19257f012c734bf6600ea25586
MD5 ca548805af8f5e217ce94ae432007441
BLAKE2b-256 39f9a1770a3467876d3109281b629eabf746c302beda5b9dfff0a045c301ff09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc856b2d387ac4b88abde3b00e7a4f6bb91056bff0ff04d2322600e6f703105c
MD5 08b9e0278905ea1e9de9a4b94daf77b0
BLAKE2b-256 7d521288184f2340f86500638f9f9ae70bbc5f03f3f293f3a5e304b540c64a2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.407-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.407-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ced833c630dc596fd0a47b91b5becb75dd7a4878eacc96e3764164928ecdde75
MD5 36051c33ef1e018c95d1bb930efed355
BLAKE2b-256 55b4c7e42377d873ab19b714d509371c41d322caf05dd010c936191044ec35b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.407-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.407-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 10f86b11bb930d96fea166e09a3c0ded47af3b1e7d5046a9f25d2b0f97aa291f
MD5 fb77f8fc4a5f15445855ee6fb207dcca
BLAKE2b-256 8945d2cca4c9972c95397ed8e1554542b71f89e3bc70f7d4a842940eba50573f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.407-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.407-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b13182c9701e354877a48b78b1cf3f59af23924d629b108d8465387b1531e90d
MD5 6a3bb67f4209787296b98d7424b4a151
BLAKE2b-256 56ece8d27cb9b302d6f3c5cdba009639eaff59896e8dc0a7858857489fcbf9e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.407-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3f8847d1f1c73cc0150d89296792d76ee9a9e437d436b64a6f3861f58735689
MD5 1bcbf648af77caa716526df5771a352a
BLAKE2b-256 0972022a5bedb166813676274449390baead634d2840fc26c66e0db95daccd0b

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