ningshuxia
2023-03-14 076301ec9c2c2fc117a062231c4c5f0e8ea6c23c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Model
{
    /// <summary>
    /// log10的坐标系
    /// </summary>
    public class Log10AxisCalculator : IAxisCalculator
    {
 
        /// <summary>
        /// 计算
        /// </summary>
        public double Calculate(double v)
        {
            return Math.Log10(v);
        }
 
        /// <summary>
        /// 反算
        /// </summary>
        public double RevCalculate(double v)
        {
            return Math.Pow(10, v);
        }
    }
}