## Send commands to `dc` The `dc` function reads the current line into `dc`, sends the commands to `dc`, and replaces the current line with the stack from `dc`. If the current line does not exist, the `dc` function sends the commands to `dc` and reads the stack from `dc` into the buffer. Suppose that the current line is: 1 2 3 4 The command `a]sa2z>a } ## Send commands to dc and calculate the mean of the numbers on the stack If the current line exists, the `mean` function reads the line into `dc`, sends the commands to `dc`, and replaces the current line with the mean of the `dc` stack. If the current line does not exist, the `mean` function sends the commands to `dc` and reads the mean of the `dc` stack into the buffer. Suppose that the current line is: 1 2 3 4 The command `b]sb[zSa2z>bLa/]sc1z>c } ## Send commands to dc and calculate the precision-controlled product of the numbers on the stack If the current line exists, the `kproduct` function reads the line into `dc`, sends the commands to `dc`, and replaces the current line with the precision-controlled product of the `dc` stack. If the current line does not exist, the `kproduct` function sends the commands to `dc` and reads the precision-controlled product of the `dc` stack into the buffer. Suppose that the current line is: 1.1 2.2 3.3 4.4 The command `a]sa2z>a } ## Send commands to dc and calculate the product of the numbers on the stack If the current line exists, the `product` function reads the line into `dc`, sends the commands to `dc`, and replaces the current line with the product of the `dc` stack. If the current line does not exist, the `product` function sends the commands to `dc` and reads the product of the `dc` stack into the buffer. Suppose that the current line is: 1.1 2.2 3.3 4.4 The command `b]sb2z>b } ## Send commands to dc and calculate the maximum of the numbers on the stack If the current line exists, the `max` function reads the line into `dc`, sends the commands to `dc`, and replaces the current line with the maximum of the `dc` stack. If the current line does not exist, the `max` function sends the commands to `dc` and reads the maximum of the `dc` stack into the buffer. Suppose that the current line is: 1 2 3 4 The command `d]sd[sa1z>dla]se1z>e } ## Send commands to dc and calculate the minimum of the numbers on the stack If the current line exists, the `min` function reads the line into `dc`, sends the commands to `dc`, and replaces the current line with the minimum of the `dc` stack. If the current line does not exist, the `min` function sends the commands to `dc` and reads the minimum of the `dc` stack into the buffer. Suppose that the current line is: 1 2 3 4 The command `csb1z>d]sd[sa1z>dla]se1z>e }