Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.physics.relativity > #668047
| From | ram@zedat.fu-berlin.de (Stefan Ram) |
|---|---|
| Newsgroups | sci.physics.relativity |
| Subject | Re: Hidden dimensions could explain where mass comes from |
| Date | 2026-01-05 20:52 +0000 |
| Organization | Stefan Ram |
| Message-ID | <ASCII-20260105214906@ram.dialup.fu-berlin.de> (permalink) |
| References | <10jduib$22p6n$1@dont-email.me> <mass-20260104180614@ram.dialup.fu-berlin.de> <10jh5u6$3779s$1@nntp.eternal-september.org> |
Anthk NM <anthk@disroot.org> wrote or quoted:
>There's the aamath package for Unix where you can display formulae
>as ASCII ART:
>https://github.com/gchudnov/aamath
>Check the documentation; it has an option to shrink the radicals.
Ah, thanks for the info!
I'm actually planning to write something like that myself.
As a quick little trial run, I recently "implemented square roots".
You can see three sample outputs here:
.-
\|x
.---
\|x+y
.-
|x
|-
\|y
A rectangular area made of characters is described by a "box":
class Box:
__slots__=["content","width","origin","baseline"]
def __init__( self, content, width, baseline ):
self.content=content
self.width=width
self.baseline=baseline
return
def __str__( self ):
return "\n".join(self.content)
. The root class only has one method, "render_ascii_display",
which generates a square root sign:
class Sqrt:
def render_ascii_display( self, operand ):
# add bar above
content=["-" * operand_box.width]+operand_box.content
new_content = []
# add bar left
for i, line in enumerate( content ):
if i == 0:
prefix = " ."
elif i == len( content )-1:
prefix = "\|"
else:
prefix = " |"
new_content.append( prefix + line )
content = new_content
bar_box = Box(content, 2+operand_box.width,operand_box.baseline)
return bar_box
. Basically, it draws a line over the operand and another
one to its left, with the top and bottom edges ending in
" ." and "\|" to form a square root sign.
Since the classes for variables, sums, and quotients aren't
written yet, those operands are manually formatted in the
main program for now:
sqrt = Sqrt()
operand_box = Box( ["x"], 1, 0 )
print(sqrt.render_ascii_display(operand_box))
print()
operand_box = Box( ["x+y"], 3, 0 )
print(sqrt.render_ascii_display(operand_box))
print()
operand_box = Box( ["x","-","y"], 1, 1 )
print(sqrt.render_ascii_display(operand_box))
print()
. The output was shown above near the top of this post.
Back to sci.physics.relativity | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Hidden dimensions could explain where mass comes from Anthk NM <anthk@disroot.org> - 2026-01-04 14:47 +0000
Re: Hidden dimensions could explain where mass comes from ram@zedat.fu-berlin.de (Stefan Ram) - 2026-01-04 15:41 +0000
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-04 17:06 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-04 15:08 -0800
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-05 10:47 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-05 07:59 -0800
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-05 08:22 -0800
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-05 22:43 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-06 00:00 -0800
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-06 09:28 -0800
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-06 10:04 -0800
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-06 10:43 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-06 06:51 -0800
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-06 09:22 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-05 14:10 -0800
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-05 23:36 +0100
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-05 23:45 +0100
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-05 23:49 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-05 15:09 -0800
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-05 15:14 -0800
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-06 00:47 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-05 19:40 -0800
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-06 17:29 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-06 08:48 -0800
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-06 17:29 -0800
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-06 19:20 -0800
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-08 23:20 -0800
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-09 00:03 -0800
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-07 08:47 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-07 11:46 -0800
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-08 09:03 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-08 08:16 -0800
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-09 02:55 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-08 19:55 -0800
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-08 22:34 -0800
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-10 09:24 +0100
Lagrangian mechanics (was: Hidden dimensions could explain where mass comes from) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-09 12:13 +0100
Re: Lagrangian mechanics Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-09 08:37 -0800
Re: Lagrangian mechanics Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-09 09:03 -0800
Re: Lagrangian mechanics Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-12 07:58 -0800
Re: Lagrangian mechanics nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-09 21:17 +0100
Re: Lagrangian mechanics Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-09 13:23 -0800
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-10 09:13 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-08 20:13 -0800
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-10 09:19 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-10 13:08 -0800
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-11 10:13 +0100
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-06 00:45 +0100
Re: Hidden dimensions could explain where mass comes from "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-01-10 13:12 -0800
Re: Hidden dimensions could explain where mass comes from ram@zedat.fu-berlin.de (Stefan Ram) - 2026-01-04 17:07 +0000
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-04 18:39 +0100
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-04 18:41 +0100
Re: Hidden dimensions could explain where mass comes from Anthk NM <anthk@disroot.org> - 2026-01-05 20:11 +0000
Re: Hidden dimensions could explain where mass comes from ram@zedat.fu-berlin.de (Stefan Ram) - 2026-01-05 20:52 +0000
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-05 22:36 +0100
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-05 22:38 +0100
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-05 22:03 +0100
Re: Hidden dimensions could explain where mass comes from Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2026-01-05 22:26 +0100
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-05 22:55 +0100
Re: Hidden dimensions could explain where mass comes from ram@zedat.fu-berlin.de (Stefan Ram) - 2026-01-09 14:06 +0000
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-09 21:31 +0100
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-04 20:46 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-04 13:54 -0800
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-04 14:45 -0800
Re: Hidden dimensions could explain where mass comes from athel.cb@gmail.com <user12588@newsgrouper.org.invalid> - 2026-01-05 10:18 +0000
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-05 18:32 +0100
Re: Hidden dimensions could explain where mass comes from Thomas Heger <ttt_heg@web.de> - 2026-01-06 09:06 +0100
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-06 10:43 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-06 06:50 -0800
Re: Hidden dimensions could explain where mass comes from nospam@de-ster.demon.nl (J. J. Lodder) - 2026-01-06 16:12 +0100
Re: Hidden dimensions could explain where mass comes from Ross Finlayson <ross.a.finlayson@gmail.com> - 2026-01-06 07:47 -0800
Re: Hidden dimensions could explain where mass comes from ram@zedat.fu-berlin.de (Stefan Ram) - 2026-01-06 18:00 +0000
Re: Hidden dimensions could explain where mass comes from Richard Hachel <rh@tiscali.fr> - 2026-01-11 22:32 +0000
csiph-web