To run the main code, go to the directory containing the files and run the following commands on bash/terminal.
- gcc -o main central_code.c infixtopostfix.c parsetree.c
- ./main
- gcc -o test unittests.c parsetree.c infixtopostfix.c
- ./test
using SHA | |
using Dates | |
""" | |
An individual block structure | |
""" | |
struct Block | |
index::Int | |
timestamp::DateTime | |
data::String | |
previous_hash::String |
import numpy as np | |
import cmath | |
import matplotlib.pyplot as plt | |
def input_function(x): | |
return cmath.log(x) | |
def input_deravative_function(x): | |
return 1/x |
// Given below is a view of what the HDF5 files content can look like. | |
// This information can be found by using the `H5DUMP` command. | |
// File Start | |
HDF5 "point/point.h5" { | |
GROUP "/" { | |
GROUP "1" { | |
ATTRIBUTE "total" { | |
DATATYPE H5T_STD_I32LE | |
DATASPACE SIMPLE { ( 1 ) / ( 1 ) } |
local node = parser:entry_stat(lex) | |
local diff_node = copy(node, getmetatable(node)) | |
print(node.node_type) -- returns ast.unspecialized.top.Task | |
print(diff_node.node_type) -- returns ast.unspecialized.top.Task | |
print(node.node_type == ast.unspecialized.top.Task) -- returns False | |
print(diff_node.node_type == ast.unspecialized.top.Task) -- returns False | |
for k, v in pairs(ast.unspecialized.top.Task) do |