unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Update the value of specific column using the values of other columns on-the-fly.
@ 2020-12-26 12:47 Hongyi Zhao
  2020-12-26 12:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 5+ messages in thread
From: Hongyi Zhao @ 2020-12-26 12:47 UTC (permalink / raw)
  To: help-gnu-emacs

I want to edit a table with 5 columns, where the first column is
calculated from the other columns as below:

val_col1 = 20% * val_col2 + 30% * val_col3 + 40% * val_col4 + 10% * val_col5

I want to let emacs update the column 1, i.e., the weighted mean
result of other columns automatically and on the fly when I input the
values for other columns.

Is this possible with emacs? Any hints will be highly appreciated.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-27  1:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-26 12:47 Update the value of specific column using the values of other columns on-the-fly Hongyi Zhao
2020-12-26 12:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-26 12:57   ` Hongyi Zhao
2020-12-27  0:54   ` Hongyi Zhao
2020-12-27  1:17     ` Emanuel Berg via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).