SandBox: Difference between revisions

Xenwolf (talk | contribs)
made the actual problem more obvious
Sebe12 (talk | contribs)
m hi
 
(73 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{SandBox please edit after this line}}
[[Category:Sandboxes]] {{SandBox please edit after this line}}


== #expr ==
{{nowrap|''Iθ''{{"}} + ''bθ''{{``}} + ''mgL'' sin(''θ'') {{=}} 0}}


[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr Help:Extension:ParserFunctions - MediaWiki #expr]
702


We can build a cent function:
fafshdtharsgdasjdkhajsgdh


<nowiki>* {{#expr: ln (9/8) / ln 2 * 1200}}
Test
* {{#expr: ln (3/2) / ln 2 * 1200}}
* {{#expr: ln (5/4) / ln 2 * 1200}}</nowiki>


* {{#expr: ln (9/8) / ln 2 * 1200}}
hi
* {{#expr: ln (3/2) / ln 2 * 1200}}
* {{#expr: ln (5/4) / ln 2 * 1200}}


but for formatting rounded results, it would be good to use [https://www.mediawiki.org/wiki/Extension:NumberFormat Extension&#58;NumberFormat - MediaWiki]
== 29L 12s, ig. ==


... which is currently not available (it's displaying just the code I typed):
{{Infobox MOS|Scale Signature=29L 12s|debug=1}}


{{#number_format:12 345 678,055555|_|.||,}}
{{MOS intro|Scale Signature = 29L 12s}}


'''The Problem''' that can be solved by <code><nowiki>{{#number_format: [...]</nowiki></code> is that
=== Scale properties ===
<code><nowiki> {{#expr: (ln (3/2) / ln 2 * 1200) round 5}}</nowiki></code> gives us <tt>{{#expr: (ln (3/2) / ln 2 * 1200) round 5}}</tt> instead of <tt>701.95500</tt> if 5 decimals are requested, as indicated by the <tt>5</tt> after <tt>round</tt>.
{{TAMNAMS use|Scale Signature=29L 12s}}
 
==== Intervals ====
{{MOS intervals|Scale Signature=29L 12s}}
 
==== Generator chain ====
{{MOS genchain|Scale Signature=29L 12s}}
 
==== Modes ====
{{MOS mode degrees|Scale Signature=29L 12s}}
 
=== Scale tree ===
{{MOS tuning spectrum|Scale Signature=29L 12s}}