Jump to content

Calculating the value of e: Difference between revisions

m
Line 2,198:
<pre>The value of e = 2.71828183</pre>
=={{header|J}}==
<syntaxhighlight lang=J> 0j100": +/%!i.100x
The j language has expressive notations for numbers. Examples:
2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274</syntaxhighlight>
 
TheMeanwhile, the j language has expressive notations for numbers. Examples:
<pre>
NB. rational one half times pi to the first power
Line 2,208 ⟶ 2,211:
</pre>
 
It won't surprise you thatAnd in j we can write
<pre>
1x1 NB. 1 times e^1
Line 2,271 ⟶ 2,274:
 
</pre>
 
=={{header|Java}}==
{{trans|Kotlin}}
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.