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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.200-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.200-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.200-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9b0f097619eb24ada7e3db48d788fd217dfdf2d782ebad3c2716d894f06b2c4
MD5 6cdf1dd89ae0cf3181afb885b3dcd6ee
BLAKE2b-256 6fdea7f8a84aa8118bcb42dd674bed14ef75676048330dd8d1778972b9517beb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.200-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.200-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2a41230a7c9ab3aefbb28f8f4f3d365ccfd0f216671f3ecac4067538d7566c15
MD5 fafef17210c473b7cba1ef5172c9c522
BLAKE2b-256 72a71194a4d0fc0d111d46203fa4618d0a35361c7efaf34e3385d9b0da35f0c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.200-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.200-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b3487755d6d7f31bac60a2d32b13d1ed7e355e66300cffab287f31d9701bd2b
MD5 14a19902670d05a0192ee3231b28f223
BLAKE2b-256 1fed62cfd2e38b80e2ec4f8eb815a4967374de698ce2052a1b0fa510a246aedb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bb10bbd2e52c97fb3d442d563183b2d84bae45605ee759cbd5c5a58e336135c
MD5 d5dc95f67973aa5749ca87e33b8b229e
BLAKE2b-256 2e7c9d75b131319069a816f2fc30bd050455a14b433da0c37a6074ad683453d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 215c354b02c3b16ed1e808999d71f0e9c2ea4404ac691351beb9de80e96b9058
MD5 fabf5aeb101cc2baf39519e2499359ad
BLAKE2b-256 cb62f03e1e1a957db9564b10ddbc69f93645e8925c63b5f7264df0f300dd9252

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.200-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.200-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 12fd612b0534f27b68182e71f70cced36cb3900c9514cd04fe8dcdda4937e956
MD5 bc071e26c890b1472196e02c078e9a2a
BLAKE2b-256 0aa42aa52c76718c9f7af1e1588e5e8a095eb9bc65d05190b575bfc8c79fd2fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.200-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.200-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe18198118049deb574f08bb43de1195346b3886aaa71e58a52ebf2eb00f4921
MD5 ca266df60f7b683097744fad6bdfacb3
BLAKE2b-256 eb10903956bc7e8f5f06d442f6a92c03e8ade4fb806045f882b2836fe9c96453

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d04a965980a7b53ddaf0109946b1d7366baee5780816498a1a9ef059b5c291b
MD5 1bfabc1383f2f6a026ddc28cd7491da9
BLAKE2b-256 301818c67166488b1c42006c29ede44acecb2fcc8e4b9db01b2a1c6e6fdade80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0296c91f791c217bbdfe69ed6d42315da560d3196d28be62a2d9ec3ed4a370f2
MD5 8ee895e0b8727f6b6560be0df56b4092
BLAKE2b-256 0734e0e79f593a5cac9e8de7160735c635b852acc9998fa7239e80631a1b2307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.200-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.200-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 18d91eb7086a009431c5baedd05bdad6ec922a81fd47f73eb214a4c6b28bb3cc
MD5 ff9c51a51bd2961180a6c3843dd5f1ae
BLAKE2b-256 ad87783840ef0bae2cae9701a19bb6e95742ba88e367814d7425f085c1287df9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.200-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.200-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 53d0c9575d9eaf0d8b543703fdcf2515a35dcc9d3a2381e6e5bf9e42a3eb827b
MD5 5aa980d9ca6b3554e2b7b9279b5d4fab
BLAKE2b-256 4b42379cf7542e1bd8aead43470e3690ac189ddabec615356b7d2b0a4631c199

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5eb5d99005bcd7d97b539252c9d0c665bc2afe169a509649fd5c74b51a552dcc
MD5 7e4f3960e7a6c7c244476569291e7bed
BLAKE2b-256 52c83905167c9b01be577a3bf3f2818f420c4ae2344aaef4a95913a1a1ef2347

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.200-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.200-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c9056a14abd02caa71d7f98969484c93d6391cd9956a0821ae5d2996f377c2ed
MD5 3d5c67b1adb03c5ab0ed708b97211f38
BLAKE2b-256 bb5186c8ebe289eaeb3a47f2a71fea66a891b15837988028573b7eb2704156f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.200-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.200-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3ef637ade5f6330e34f1abb0678ffa8303adae9c5774381fb8f1bff6aba29afc
MD5 eaa54d12b93b45e9d2e5ad0defcd6076
BLAKE2b-256 a371cb1ea52e08def7fdf451297ee297054ff12d6d31309277c388bfed62e363

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.200-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.200-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dca8c6cd01e5aa326b8876af669ce640e83bb2a4265d47501b2988a32ff8fe5e
MD5 fdbcfc170d3afc1aef028371e9746ba6
BLAKE2b-256 ba87d79350b73610f45bd7afac15d5972e52e84fc1e83265020ba84498b969a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 200d2a7c4afb09b74e297c2c4ab046f81bc3bc35a8ba7b0d3d2bc2ab54e9a6b1
MD5 8dd276fec537383be2ee7f4c31ca2653
BLAKE2b-256 56204cd32e6189c8cb2b27f4f1e70f1abd1534164a51586d49f6b661c5629734

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.200-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.200-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b3063e8a88211d4bb162c92e01bccfc2d6de8a183d9b5c19f46c611d5cc9737e
MD5 fb9038f6ee5c4258bfa8b5e2b0859208
BLAKE2b-256 0c8955f951dc6b39b8371713e8db83bdace77d9b78245618cf82571fc2e5143d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.200-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.200-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f36fcb6a32d2aacb4014d4fc6071314f48054871a824ddcd4eef86f2ea2baee2
MD5 5dc66709bd2d5653553c40ada36c5bc7
BLAKE2b-256 c8c4bb17114162fdad2dc4d2317b4ae41edd0abf58058984929331e0291c1bd9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.200-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.200-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03eca3ff4f226e3d9b5d812dc45764edc65c0f307194ad4635f1bafefff5e8a5
MD5 675cff4a31a4855b87b76fcb770ebbdf
BLAKE2b-256 e0a1c0d484ebc865b6faf1331e04ee8ab9f8c4cd4bf90c3fe2e9d3db01a96c75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.200-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43096a8aa2d58c9aeef3394962c1846947c256a5e2b0d9dfbaf7d8b780ca5b9c
MD5 0a3b5409ee6f5a697e885a3f2e901be4
BLAKE2b-256 ac5eee80a2f34d55a890deebd730b8d976db5a91839f8e8c77bff24a7cfe9deb

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