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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.531-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.531-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.531-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2025c9a00e3f50432dd10ef91d973535e13803017586461348178d3413c3eaa2
MD5 bc20065f4b65af5336fbd8b889b37079
BLAKE2b-256 8b4270df6bc54ab96ab9add05ad06b442cb76b18590419f7bf7d4a21a961b98c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.531-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.531-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8ba34a9254ff5b367578950bcc5352a132bfb7328ed838f2f317df8a1e32c98e
MD5 45ea793f08d9208e679c01b5254e515a
BLAKE2b-256 0953015dbce9a8b923fca7813db56ad4a62d920b3a4aaac6076bf7ca7c676831

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.531-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.531-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c1399e609c218dc896abf5db3d3e0680fb3cc4648605102592104347e7f28db
MD5 959e27159a59df02c2fd39247ab82251
BLAKE2b-256 2d7f74779bc81b18845904136536382e64351aa8e818622e69a283b0fc0f94f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5df0bbfe5ea3ba186823f23543a138301491eac48d23b3ee46c6dba2643d16b
MD5 b15e8b113eea047cfebd738d103cea9a
BLAKE2b-256 1a823e5a405622a6e891b36bd68e591ce0b5daf5b07ba3042576f6cd17f8ac64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0879eb3b1cee173d42e9f9acee131a26a512201852dcde6e361447b1e35d4247
MD5 366b0f7a62e076cc6ecdae6e62ad8ea1
BLAKE2b-256 18105e4010c07c670e1abfe22a438955a906c4b01bcd49dfc2f03e5215a693cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.531-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.531-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 76507c97adeb80c189260fe114e20e0e07713b7649faab114a2c6a600030022d
MD5 dd35665df374e979a113fe1d5df95446
BLAKE2b-256 f63ddc5f299e223ddeaa5e67665caedc5a338cc61de7a6cbacdb74bddb23a193

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.531-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.531-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e6dd792c2143e04d74aa1bd658cecfa985149da797eb4cf025c8601defb4cc2
MD5 b9798675f79c0e3f56f8c92f6ab13332
BLAKE2b-256 f8a2123a42fc35fafa55a5a9da3ea78250c031e8f6fe1ace383be60879ae29f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea20e01e58734df243c144bd6d446788be658b0fef033418831fbaf11e2231ab
MD5 8cabea4db4fdcd62b40d1fa4519c7079
BLAKE2b-256 c3d0e6ce7d66391dec9ee8e41e8a4ec462389c5649e326abf224a4a5c13ff19b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 600596a4c3d794198fa90b36799aa75fa3505da051b7df2a5733daf33bb00aa9
MD5 f7679beafa195d87d3374224c1743603
BLAKE2b-256 9bebf88d51d354366233261ae92d58e4f68f2592659961b5dcdef190a8c4d101

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.531-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.531-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e65d645632600acc5d419ca733e36e2779d42d0a14d015f351430e6dcd5e5746
MD5 293458db25b728883a6d6d3f025fd3e0
BLAKE2b-256 3b1e2d6a14d21029d4654e5bbdd4c8402a925204aad1ce89ece16675fae44ea6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.531-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.531-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5672560550a190a5fa1c0710b3a8fbc4fdaab26623ef737e8d3673df08bb0a50
MD5 b78b85cc1aef56d34463b4ca5fb4e5ef
BLAKE2b-256 cb19391131590a4d455d56743cf69b1ff00d545b7c2d863161c32e2539315ba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b31cd1081d120585680393bc7f3cd911287bd20b48cac1ac8ba17eaf7965f484
MD5 29dc7388d09f99c29e732402c0236fb8
BLAKE2b-256 a1c54a13f23a8da5ae5453aab6cd00a0cdcf13cdef658045b1dfe668b961845a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.531-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.531-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f0d57a7f016474d931e9ee7b10a4833cb62b7fe86bf0a204432ba96a7750367f
MD5 5397c86d4218fb55e396ade37a473819
BLAKE2b-256 d4f8531733e37813781e4b939527a5ce95b76f061cb53659122be9e2bd9a2b85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.531-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.531-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dbce3de54d3da89fdcf3039a93317837bfce2274598b31ef2cba25ccdcea10d8
MD5 d72670e014164fe2a0792b4f2160004f
BLAKE2b-256 6ee0e46dc94a506b85f1562ad7cebe2523cd0ec01424285ea80b88ec5999f178

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.531-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.531-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0493db6f85c39607a439d9fbb06f582075f305d3f19a16e3daff4a8f10f3705
MD5 cadae19628c2a08713dd1388ce3e4f6f
BLAKE2b-256 1a6a21aba8cee8d9aaadd73a5b67f92b36f7d80ea52e305a3b1e7012fc6dfb62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa7dac0e167d0af183f62d5ff1af79427cde9f14088d3e80bf8b8f944ed25fb7
MD5 47ef3ad4b3e7ded61aa4e2721eb03c59
BLAKE2b-256 7c538e1fcba89c3198cdfaa8179548c8bc8d7a28a93a8d086fa5aa26b7ffde66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.531-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.531-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ce9f28b4ec8191d9248a468d51609e808140a0e7e22758a92aa63c1acb9cdffd
MD5 69461d39403d15612331b0ce2bf7b531
BLAKE2b-256 1c07b308ba38fa3c50b0a6fbf5312087a50b4d5b051bc286ae616fba38038ae9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.531-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.531-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c4519df1da3a7cc7ac7631c425f18e730cb6f151fa972972123a9d8939cb298d
MD5 392aa13bb9802517b0a849e7c706f433
BLAKE2b-256 f65f504f85ca3c32409c23da4def9bee1130de2a1eb4a6c05c399a1227789038

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.531-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.531-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ced27a98ae2f4b31ab95fbb8bb664f2cf829ebc223e8bbbbc01ce0a1ea8d246b
MD5 bb2ec2600dd22ce43ae1dc9fc88c429d
BLAKE2b-256 4f36102f24bb55fc0dcb0edc8fb0a70270701ca871bbe52d92503d3040855ad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.531-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 548e057cc9a6dc81cade69defe83cedddf456a69db09c850592903f4ba73dcfb
MD5 8685f6241ddfd32b900bf4f42e7e9a74
BLAKE2b-256 2f66c89eabcb095b4867f9fad1cb7421241aa6bbd690ff581d6fdf8f52cfcaea

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