首页
中国名著
中国文学
外国名著
影视作品
水浒传
道德经
易经
礼记
老子他说
学习字词典
我的日志
字号++
字号--
这里可以复制文本,然后在下面粘贴。
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { using System; using System.CodeDom; class Program { static void _Main() { double[,] array = { {1.0, 2.0, 3.0}, {4.0, 5.0, 6.0}, {7.0, 8.0, 9.0} }; // 斜线的交点在 array[1,1],其值为5.0 // 对 (1.5, 1.5) 附近的点进行线性插值 double x0 = 1.0, x1 = 2.0; double y0 = array[1, 1]; // 5.0 double y1 = array[2, 2]; // 9.0 double x = 1.5; double interpolatedValue = LinearInterpolation(x0, y0, x1, y1, x); Console.WriteLine($"线性插值后的值为: {interpolatedValue}"); } static double LinearInterpolation(double x0, double y0, double x1, double y1, double x) { return y0 + (y1 - y0) * (x - x0) / (x1 - x0); } static void Main(string[] args) { var datas = new int[,,] { { { 1, 2, 3 ,4}, { 5, 6, 7, 8 }, { 9,10, 11,12 } }, {{ 13,14,15,16 },{17,18,19,20 },{21,22,23,24 } } }; int x = datas.GetLength(2), y = datas.GetLength(1), z = datas.GetLength(0); var newdatas = new int[x, y, z]; for (int i = 0; i < x; i++) { for (int j = 0; j < y; j++) { for (int k = 0; k < z; k++) { newdatas[i, j, k] = datas[k, j, i]; } } } Console.WriteLine(datas.GetLongLength(2)); } } }
文本定期保存哦
居中
百度意思
百度图片
缓存数据
最近查询记录
2025-01-28读书
我的笔记-2024-12-23_读书
我的笔记-2024-12-22_读书
我的笔记-2024-12-18_读书
2024-11-02读书
我的笔记-2024-10-25_读书
2024-10-24读书
我的笔记-2024-10-24_读书
我的笔记-2024-10-23_读书
我的笔记-2024-10-19_读书
我的笔记-2024-10-18_读书
我的笔记-2024-10-17_读书
我的笔记-2024-10-16_读书
2024-10-16_读书读书
2024-10-15_读书读书
我的笔记-2024-10-15_读书
我的笔记-2024-10-13_读书
我的笔记-2024-10-12_读书
我的笔记-2024-10-11_读书
我的笔记-2024-10-10_读书
我的笔记-2024-10-08_读书
我的笔记-2024-10-07_读书
2024-10-07读书
我的笔记-2024-10-06_读书
2024-10-06读书
2024-10-05读书
我的笔记-2024-10-05_读书
我的笔记-2024-10-01_读书
2024-10-01读书
2024-09-28读书
我的笔记-2024-09-29_读书
2024-09-27读书
我的笔记-2024-09-27_读书
2024-09-26读书
我的笔记-2024-09-22_读书
2024-09-22读书
我的笔记-2024-09-16_读书
2024-09-16读书
我的笔记-2024-09-10_读书
2024-09-10读书
我的笔记-2024-09-08_读书
我的笔记-2024-09-07_读书
我的笔记-2024-09-03_读书
我的笔记-2024-08-22_读书
我的笔记-2024-08-18_读书
我的笔记-2024-08-12_读书
我的笔记-2024-08-11_读书
我的笔记-2024-08-10_读书
2024-08-10读书
我的笔记-2024-08-08_读书
2024-08-08读书
我的笔记-2024-07-30_读书
2024-07-30读书
我的笔记-2024-07-29_读书
我的笔记-2024-07-14_读书
我的笔记-2024-07-12_读书
我的笔记-2024-07-11_读书
我的笔记-2024-07-08_读书
2024-07-08读书
我的笔记-2024-07-06_读书
我的笔记-2024-06-30_读书
我的笔记-2024-06-26_读书
我的笔记-2024-06-25_读书
2024-06-25读书
我的笔记-2024-06-24_读书
我的笔记-2024-06-23_读书
我的笔记-2024-06-22_读书
我的笔记-2024-06-21_读书
2024-06-21读书
我的笔记-2024-06-20_读书
我的笔记-2024-06-19_读书
我的笔记-2024-06-16_读书
我的笔记-2024-06-14_读书
我的笔记-2024-06-13_读书
我的笔记-2024-06-12_读书
我的笔记-2024-06-11_读书
我的笔记-2024-06-08_读书
我的笔记-2024-06-05_读书
我的笔记-2024-06-03_读书
2024-06-03读书
我的笔记-2024-06-02_读书
我的笔记-2024-06-01_读书
我的笔记-2024-05-31_读书
2024-05-31读书
我的笔记-2024-05-28_读书
我的笔记-2024-05-26_读书
2024-05-26读书
我的笔记-2024-05-24_读书
我的笔记-2024-05-14_读书
我的笔记-2024-05-13_读书
2024-05-13读书
我的笔记-2024-05-10_读书
我的笔记-2024-05-07_读书
我的笔记-2024-05-04_读书
我的笔记-2024-05-03_读书
我的笔记-2024-05-02_读书
我的笔记-2024-05-01_读书
我的笔记-2024-04-21_读书
2024-04-21读书
我的笔记-2024-04-15_读书
反义词
近义词
词组
谜语
造句