[Math Issue] - I need the formula to calculate painting spacing

102 views
Skip to first unread message

@TiddlyTweeter

unread,
Nov 11, 2018, 9:01:06 AM11/11/18
to tiddl...@googlegroups.com
I have a problem. I'm crap at math.

The problem is to calculate the "hanging points" for 6 paintings.

These are the inputs ....

- the wall is 636 centimeters long;

- the offset of the edge of first and last frames is 22 cm from the start of the wall (left) and end of the wall (right).

- the frames of each of the six paintings is 64 cm wide.

What is the calculation that will give me the list of "mid-points" (the painting's lateral centres) such that I can equally space the paintings? (Practically I need the measure of the centre-to-centre distance of the paintings within the specified length, taking into account the offsets.)

That is the first part, to get the math.

The second part is which math plugins for TiddlyWiki can do this simply?

Best Sunday wishes
Josiah

Mark S.

unread,
Nov 11, 2018, 11:15:13 AM11/11/18
to TiddlyWiki
I get

separation distance = (636-2(22)-2(32))/5 = 105.6 cm

So first center starts at 22+32 = 54 cm and each center is separated by 105.6 cm

#1 54
#2 159.6
....

check the math

-- Mark

Pit.W.

unread,
Nov 11, 2018, 11:40:19 AM11/11/18
to 'Mark S.' via TiddlyWiki

With Evan Balster's formula plugin the formula looks like this:  (= (636-2*(22)-2*(32))/5 =)

resulting in: 105.60

not that complicated.


Your 2nd question: "which math plugins for TiddlyWiki can do this simply?"
*simply? none. Math is painful.
*
math plugin of choice: Evan's formula plugin. Its the Tyrannosaurus of all plugins
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7728ce13-d915-4e7d-a91a-5e930823dd78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



_________________________________________________________________
________________________________________________________
Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de


Thomas Elmiger

unread,
Nov 11, 2018, 12:40:13 PM11/11/18
to tiddl...@googlegroups.com
I get the same as Mark, using RPN I did the following:

* wl = Wall length: 636 cm
* ot = Offset total: 22 cm + 22 cm = 44 cm
* pw = Painting width: 64 cm
* np = number of paintings: 6

---

* first nail: ot/2 + pw/2
* next nails: (wl - (ot + pw))/(np-1)

---

first
: <$macrocall $name="rpn" a=<<rpn 44 2 />> b=<<rpn 64 2 />> operation="+" decimals="2" precision="p" locale="de-CH"/> cm

next:
<$wikify name="distance" text='<$macrocall $name="rpn" a=636 b=<<rpn 44 64 +>> operation="-"/>'>
<$macrocall $name="rpn" a=<<distance>> b=<<rpn 6 1 ->> operation="/" decimals="2" precision="p" locale="de-CH"/>  cm
</$wikify>

Now your turn Josiah, put the four parameters in input fields and use for every wall. :–D

Cheers,
Thomas

@TiddlyTweeter

unread,
Nov 12, 2018, 4:18:29 AM11/12/18
to TiddlyWiki
Many thanks Mark S., Pit W. and Thomas E. !

All three replies were useful. The placement was correct. Mille grazie.

Since I have to do this placement of paintings quite often, now I have the math, I will play with the plugins to see if I can make a gizmo to do it...

Best wishes
Josiah

@TiddlyTweeter

unread,
Nov 12, 2018, 5:26:21 AM11/12/18
to TiddlyWiki
Pit.W. wrote ....
Evan's formula plugin. Its the Tyrannosaurus of all plugins

 Yeah, though Thomas' RPN plugin is a pretty good Ornithomimosauria.

Best
Josiah
Reply all
Reply to author
Forward
0 new messages