Scientific Equation/Expression Analysis Based On Dynamic Program Analysis
Project description
ScEqAn (Scientific Equation/Expression Analysis)
- Dynamic Expression Analysis for research on equations and algorithms.
- Used for providing boundary values to any equations to make sure how far the input dependencies have impact on outcomes
- Altering the x, y multiple times to check individual impact of x & y on f(x, y) is the ultimate goal of ScEqAn.
- Check out the example code in repo ( https://github.com/Palani-SN/ScEqAn ) for reference.
Note:
- Recommended for Educational & Research purposes only,
- Not Recommended for Verification & Validation (Testing)
Step 1 : Create ScEqAn input scripts in Input.txt
[P] = p{-10.0, 70.0} + r{-50.0, 50.0} * t{0.0, 0.20};
[Q] = q{-20.0, 20.0} + s{-50.0, 50.0} * t;
- save the above content to Input.txt and use that to create the Output.log
Rules to be followed in writing ScEqAn script
- All Input Variables of any equation should be provided with a range as specified below.
... = input_variable{lower_bound, upper_bound}
- And Output variables should be enclosed within square brackets.
[output_variable] = ...
- Otherwise you can write the equations the same way you would write in a python code.
Step 2 : Use the following example Code to get reports
Analysis
- Sample usage of the file is as given below (Refer Examples for more understanding)
from ScEqAn.Analysis import DynamicProgramAnalysis
OBJ = DynamicProgramAnalysis("InputFiles/Input.txt", "OutputFiles/Output.log");
# For printing the results to console, set Debug = True
OBJ.Run(Debug = True);
# For printing the results to console, set Debug = False
OBJ.Run(Debug = False);
CodeFlow
DynamicProgramAnalysis (class from Analysis.py)
- Initialising class helps to configure the Input txt file to be used and output report needs to be generated with the worst case values.
- Arguments
- Arg1 - FileName (name of the input file which has ScEqAn script)
- Arg2 - LogFileName (name of the output file for the reports)
- Sample usage of DynamicProgramAnalysis Initialisation is shown below.
from ScEqAn.Analysis import DynamicProgramAnalysis
OBJ = DynamicProgramAnalysis("Input.txt", "Output.log")
Run()
- Initiates the Dynamic Program Analysis with the already set Input and Output files as configuration.
- Additionally we can select Debug as True to print the current status of the run to console.
## Definition
def Run(self, Debug = False):
- Arguments
- Arg1 - Debug (If True prints the run info to console, If false doesnt print)
Step 3 : Check output reports in Output.log
- you will be getting the extreme values of input with respect to output extremes as shown below.
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 Distribution
ScEqAn-0.0.2.tar.gz
(52.8 kB
view details)
Built Distribution
ScEqAn-0.0.2-py3-none-any.whl
(17.7 kB
view details)
File details
Details for the file ScEqAn-0.0.2.tar.gz
.
File metadata
- Download URL: ScEqAn-0.0.2.tar.gz
- Upload date:
- Size: 52.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8edd353c5bd6dee1a2556c7e01947fb8f10a9ba4ce3475f07c6c6e33d6de76d9 |
|
MD5 | f472860c98828f1e05d7e4f57c2a4827 |
|
BLAKE2b-256 | 1ae7b17219a2997e5a787e7aa69f64990663445632153a474abbe40fb84b425b |
File details
Details for the file ScEqAn-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ScEqAn-0.0.2-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2421bc46461ecc38043eb5da02887ccf4fcd579426e72eade60b51b72375065 |
|
MD5 | f564648cac822b8ee6bc6aa2f8e34c51 |
|
BLAKE2b-256 | b9fd55c7fbf413fca5760f43dcd4e06403c72971d1511a4a8c2249fbad30b9a5 |