Create documents with working, well-documented calculations!
This is a live text editor. You can click anywhere and start typing. The calculation cells are also live. You can click on one and edit it. They will all update if you close a calculation cell with Enter.
Calculations
To create a calculation cell, select a spot and type Alt+C or hit the button. Write your calculation into the cell and write a “?” sign where the result should appear. Hit the Enter key and a completed calculation will appear, like these:
You can assign a result to a variable:
… and then use the variable in a calculation:
Rounding Results
You can define how numeric results are rounded. The next line specifies that subsequent decimal
fractions will be rounded so that no more than 3 significant digits appear.
Unit-Aware Calculations
Physical units can be part of your calculations. Hurmet will automatically convert the units. Write a number and a unit name together with no space, as in 20meters or write a unit name between single quotes, as in 4 'nautical miles', and write a ?? where you want the result of a unit-aware calc.
Hurmet also does a unit-compatibility check.
Vectors
Calculations can be done on vectors.
Say that we want to build a cylindrical water tank in 5-foot courses.
, tank diameter
, course height
, tank height
, water density
We’ll calculate values for each course, all at once, using vectors. Each vector element represents one course.
The next line creates a vector. The syntax is [start:step:end].
, water depth at the bottom of each course
, lateral hydrostatic pressure
, hoop tension in each course
Vectors can replace many spreadsheet calculations. Then all of the expressions and values are open to view. That extra information helps you to avoid the errors that creep into spreadsheets.
Spreadsheets
Sometimes vectors are just too awkward. For those times, Hurmet can include simple spreadsheets.
Vertical Distribution of Seismic Force
From earlier analysis
, base shear
, fundamental period of the structure
From ASCE-16 section 12.8.3, Equivalent Lateral Procedure
, vertical distribution coefficient, Eq. 12.8-12
, local design force, Eq. 12.8-11
dist: Vertical Distribution of Seismic Force
roof
950
70
113,100
0.2899
116.0
116.0
0
fifth
1,250
56
115,800
0.2968
118.7
234.7
1,624
fourth
1,250
42
83,770
0.2147
85.90
320.6
4,910
third
1,250
28
53,080
0.1361
54.44
375.0
9,398
second
1,250
14
24,340
0.06240
24.96
400.0
14,650
total
5,950
0
390,100
400.0
400.0
20,250
To edit a spreadsheet, select some part of the sheet and tap the button. In Hurmet spreadsheets, you toggle the entire sheet, not just one cell.
Data Frames
Data can be stored in a tabular format:
Later, you can access the data:
Remote Data
Such data can be stored in a remote file. Say that we want to engineer a steel end-plate connection. The calculation could begin by fetching a chunk of data about steel shapes and loading that data into a variable, like this:
From that, we can load data into variables for individual dimensions.
Beam properties:
Column properties:
Now we can use those variables to do calculations. For an actual steel connection of this sort, a calculation would typically run to about three pages. We’ll do just a few lines.
Steel properties
Factored reactions at end of beam (from analysis results)
, yield strength
, shear
, modulus of elasticity
, bending moment
Check panel zone
, panel zone shear demand
, axial load demand in column from structural analysis
Draw a box around your conclusion. It will draw attention.
Rational Numbers
Hurmet numbers are rational numbers of arbitrary precision. Unlike most programming languages, Hurmet will do the following comparison correctly:
Hurmet can handle bigger numbers than many languages:
Matrix Inversion
Hurmet can solve a system of linear equations via matrix inversion.
The system: when restated in matrix format is:
We can invert the first matrix and multiply it times both sides. That solves for each variable.
Reviews
Reviewers can write comments that are visibly different than the document.
You can save a document snapshot and later display the difference between the snapshot and the current document.
Annotations
A section can be given an annotation, like this tip. The available annotations are “Note”, “Tip”, “Important”, and “Warning”.
User-Defined Functions
You can write your own Hurmet functions. The one below implements an infinite series developed by Francois Viète in 1597, to estimate the value of π. He derived this series:
Here’s the function:
… and now we’ll call the function and tell it to calculate the first ten terms of the series:
, good to 6 significant digits. Not bad for ten terms.
Drawings
Hurmet’s draw environment enables function plotting. For instance, to get a sine wave, one can write the following code into a math zone:
draw()
title "sin x"
frame 250, 150
view -5, 5, -3
axes 2, 1, "labels"
strokewidth 2
plot sin(x), 51
text [1.6, 1.35], "sin x"
end
If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.
Bitcoin Address:
bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge
Please verify this address before sending funds.
Bitcoin QR Code
Simply scan the QR code below to support Techcratic.
Stay updated with Hacker News, where technology meets entrepreneurial spirit. Get the latest on tech trends, startup news, and discussions from the tech community. Read the latest updates here at Techcratic.
We use cookies on our website to give you the most relevant experience. Techcratic does not keep or sell your information. You can either Accept, Reject, or adjust Cookie Settings to your preference. Thank you.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.