摘要: https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2019/ENU/MSHMXR/files/GUID-23DF16CC-64E0-4399-A271-867A3A146207-htm.html 阅读全文
posted @ 2021-05-06 20:51 YWU 阅读(28) 评论(0) 推荐(0)
摘要: 已知3个球心角(A0、B0、C0)及球体半径R,计算:球面三角的角度(A、B、C)、球面三角的面积、以及球角锥的体积 (涉及角度均为弧度制) 1、计算球面三角形的边长a、b、c: a = A0*R; (弧长=弧度*球半径) b = B0*R; c = C0*R; 2、计算球面角: (1)方法一:基于 阅读全文
posted @ 2020-03-27 19:29 YWU 阅读(4954) 评论(0) 推荐(0)
摘要: #!/usr/bin/python import os fi = open("f.fdat", "r") fo = open("fcwithtime1.fdat", "w") i = 0 for line in fi.readlines(): i = i+1 fo.write(line) if i= 阅读全文
posted @ 2020-03-25 12:36 YWU 阅读(243) 评论(0) 推荐(0)
摘要: 软连接用来连接目标源程序和/usr/local/bin,从而在命令行可以直接调用 如下为安装好Intel® Parallel Studio XE suite后,将源程序软链接的示例。 附:Intel® Parallel Studio XE 2019安装后的初始化 Before You Begin I 阅读全文
posted @ 2019-10-10 14:45 YWU 阅读(641) 评论(0) 推荐(0)
摘要: 说明: 因为插入代码的模板都没有FORTRAN,所以代码显示的关键字有些问题,但结构没变。 ! 测试结果如下: 阅读全文
posted @ 2018-11-23 10:59 YWU 阅读(2303) 评论(0) 推荐(0)
摘要: def quickSort(nums): low = [] equal = [] hi = [] l = len(nums) if l>1: v = nums[0] for n in nums: if n v: hi.append(n) ... 阅读全文
posted @ 2018-02-04 21:15 YWU 阅读(127) 评论(0) 推荐(0)
摘要: numpy.delete(arr, obj, axis=None) Return a new array with sub-arrays along an axis deleted. For a one dimensional array, this returns those entries no 阅读全文
posted @ 2018-02-02 08:45 YWU 阅读(3739) 评论(0) 推荐(0)
摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文
posted @ 2018-01-29 15:38 YWU 阅读(47) 评论(0) 推荐(0)
摘要: import numpy as np from sklearn import linear_model import matplotlib.pyplot as plt x = np.arange(0,3)[:,np.newaxis] #x = np.array([[0],[1],[2]]) y = [2, 3, 4] x0 = np.array([13,15,17])[:,np.ne... 阅读全文
posted @ 2018-01-19 17:16 YWU 阅读(114) 评论(0) 推荐(0)
摘要: Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Given a number n. You have to 阅读全文
posted @ 2018-01-05 09:10 YWU 阅读(87) 评论(0) 推荐(0)