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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.468-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.468-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.468-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c702e02cd3aa9b802dfc824091c87ff57169d0213542c96fb0e6460eeb3db58
MD5 4dd038b3393bdf174076b1d3410cff2c
BLAKE2b-256 974d50ac89ee22157427a38072b4389b3eab2d06773085e73eafe04a9b813f46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.468-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.468-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7f23533ac3bb3d5981cd99464c0228f48ea2097be860e0b81770958c11c292cc
MD5 e0d56572ba6aa8d825e7f94ad9670873
BLAKE2b-256 6c9c8822a26038abb1271379ba6bc40d58e8bb948c52410385b874dc3dead65c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.468-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.468-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 031b189e92d6812dd6f8582f215c85da17065c4c269ac4de2d8542263e1ae88e
MD5 5ef4bf994905133f6b70aa5b584ae8d0
BLAKE2b-256 597aab39d429b58d45d1b14377c4527a31dc9548e0fdb92219576374227cba20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bae0a17bb500d087c7a3f9659389dd885f6bfa6a047dc29c545d8be8ecd5add
MD5 3c597fd66d58f06d5e89303c3bf50689
BLAKE2b-256 fef08bb6e3674fc3368384754bc64fbe9f584733bdb4f3f2c4bc936e9b300c32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8c7724cf75c972186b37c41485d5b9bae0a4d877de42799b8be0ad80b5f04d51
MD5 037edc9b13d0bdc5a54a378d0c26b500
BLAKE2b-256 4b16df4388f4483287b96dd060783fb9d96b170be82498cfed9df76230664527

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.468-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.468-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9b71d6eb2240f16d2d9ceeeef9c2086eeefd6bec23b59388170f1f33a74b419b
MD5 22b8413497bfdd38a040f422ad7be70b
BLAKE2b-256 2371e6f0403d27985166573bab2a9e0d7333db6cfec33704711a0c00ad3ca488

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.468-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.468-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1fc961f5b3fef89ae0d62cae0abbde03e6fef08698c73a05df0baaa2298fe3c6
MD5 1045be206ad7bf848e96dfa53ef9ddf8
BLAKE2b-256 aef5c25b87a5f199356f67aa97ef595be36bde955f4771585e373c9d8570ee71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9618e87f7ff700ccf2cece5a6c846f6557a2d4fc97e2bea56b797d0930e0bbdf
MD5 1f517d02f17e59b63d59f8db848a8c78
BLAKE2b-256 091ea0b5dca001b2102c19694201f4de0592904072bd18186ee04fd200fbe2e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cde8795cb896b34d0b17dfd86ad4bc476a2f60f52909de13235d668cec9ae475
MD5 8669774cac9d7cb7c0ba3d3e5bc3fb9c
BLAKE2b-256 16085f6b6d59a5568939c8888c88c012a5a315c3f9e529266723b5b8d2c7b271

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.468-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.468-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8334e46e53bce5c905b444304eaf51cf6ffb1d611480843625199fd9a8c0f4d6
MD5 2ec528d57f21c778732f737df5ea7e71
BLAKE2b-256 9f5004779b2907e8bc52661e4466c3066881c417591cbb0d3d8b0abeccecd6d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.468-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.468-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ebc240cfd9f5c787ff427c97859152383df164aba655b06c9b0fa6dc56bc4664
MD5 f2392a80512d21560f2d85d08641080c
BLAKE2b-256 6203c1ef7c26e958858b64f6fc9380024fcfd9adfdfcbf415824b57b6861ee1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 148ab71d7d24aea107537ca83bcba607e6dec8755028f07e14388cb7dc4be2cc
MD5 599492d6fa2264b9cb05b3864c5ba62b
BLAKE2b-256 8f53baa2192e46c2db94c092273c746eb5f0fce1cfae20796db9c8fb39486626

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.468-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.468-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 67b235ac3ac0e3eb2ee0796a55ba511363b2e7753f71e7f9d823ffab20b4592d
MD5 cc8639a9eb5a7acc91053cbbdb855987
BLAKE2b-256 7d33b9a99fa1579ef7abcf4610cd6edc51c0b21d3451fd0fab8ad088f30fd2ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.468-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.468-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e765f1d8b36599de46626006325b463eaea3c4873a7454bab42afed5b6798752
MD5 3748910f3f9f10a2904efe954cb1faf6
BLAKE2b-256 1f929ff7aec9f864ab5f2045646c2270e1d40cdcbb2c3a74537c5591bb4e02f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.468-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.468-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f4ff3d05f6c70dbb5e22d9d3a2a2d8446c82b1b8a031ad55692bc3eecd1776e9
MD5 8323fb9ce8bb8568d8bc62e6a42c77fa
BLAKE2b-256 3ffe1f02449634c0a4b28608fb2dc1336615c687b30d5f6cbbd842c9cde7e223

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ae667485d66abc84b15fc7e99119b65659189a9ee41fbb60f08eaae4470f7d4
MD5 4318fd3c0560a7e6c0709921efb8df76
BLAKE2b-256 0cb71901327a0ed0fafc8424979cf933ae6d4e3d61669f74d90c5de18480e8b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.468-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.468-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1331ac6c73492db20fb6989f76b475447c34b5190a7e6e8ea11a83e5bffc822b
MD5 f1d9e5cc309183bd450011a3cdbe33f8
BLAKE2b-256 d48314a6faf2c47a75a9f91516c3349980dba17bdfdc289be75637053169b7a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.468-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.468-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f36947693e0ae3b39540f31edcb5e0fcd5fe17dec81335ed57391d927ab0e539
MD5 0ce06401b33fe8c09ef392396e7b2f7a
BLAKE2b-256 d8d4d357aaab899071b805fb4a48d8826f85a4ac969841f737b87fdee3908c5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.468-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.468-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7506f7171d0fdffb1cc3db1f3ad3a03e620d637b48432d02a6a29ec7efd0f6cf
MD5 af194073579e13ea1d2f7c36b6ceb25d
BLAKE2b-256 719ef7580b7b70d7fcaa7e0672f5ef065bede68d5e5ba6a5f3096d3a90f23c99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.468-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d616971a61213cb3e39f8366bd5bb0a14c44a03b975e405da11080e1282ce5e3
MD5 515ac6018311a88658025c755f1c260a
BLAKE2b-256 72fc9eb689fe081f2c915425bf298a9f6cff54bb09c3611422e3148c249bfd4c

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