Re: shell wrappers for trig and other mathematical functions

2019-10-02 Thread Klaus Singvogel
Hi,

Dan Hitt wrote:
> I'm half-way looking for some shell wrappers for common trig functions like
> sin, cos, exp, log, and others.
> 
> I'm aware of bc, but it seems cumbersome.
> 
> I would like to just type 'sin 1' and get the sine (of 1 radian), or type
> 'log 2' and get the natural or maybe common log of 2.  (Probably any such
> program should do something intelligent when faced with multiple or zero
> arguments, such as computing the sine or log of each, so that they could be
> chained together.  And maybe such a program would pay attention to
> environment variables or optional command line arguments to tune its
> behavior.)

to put in a word for bc...

Did you try "bc -l"? "man bc" gives more details

To get the sine of 1 radian:
s(1) 

To get the log 2:
l(2)

Similar are exp, cosine, arctangent:
e(), c(), a()

Don't miss the fact that "." is the last result. Try out e.g.
    8^2
./2

Best regards,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



Debian 10: issues with copy of tabular

2019-09-22 Thread Klaus Singvogel


Hi,

I noticed a strange result, when using copy from one application
to a (u)xterm:

Every tabular is replaced by one or more spaces when copy

Examples:

a) Using LibreOffice Writer (6.1.5-3+deb10u4) having a line like:

   ab

   and copy to xterm, running xxd results in:
   : 6120 620aa b.

   Hex 0x20 is space, not tab 0x09

b) Using xterm, opening vim and copying line:
   cd

   copy to another xterm, running xxd results in:
   : 6320 2020 2020 2020 640a c   d.

   7x Hex 0x20 is 7x space, not tab 0x09


This behaviour wasn't the case, when I was running Debian 9 (stretch).

I did a system upgrade from Debian 9 (stretch) to Debian 10 (buster) and
not a fresh install.

Running now xserver-xorg-core and not wayland.

Window manager is LXDE.

Clipboard Manager is is ClipIt (1.4.5)


Is this a bug or can it configured somewhere? Where?

I have no idea which package should I file a bug report?

Can anyone help me, please?

Thanks in advance.

Best regards,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



<    1   2