小编shr*_*t18的帖子

带有 Lahiri Ayanamsha 的瑞士星历恒星模式给出了错误的值

我正在尝试生成行星的经度。我使用瑞士星历 dll 来完成我所有的艰苦工作。然而,不幸的是,瑞士星历为恒星模式 Lahiri Ayanamsha 生成的值与我从其他吠陀软件或包括JuniorJyothsh在内的在线门户网站获得的值相去甚远(大约 25 分钟,尤其是月亮)

我已经下载了 .se1 文件(针对行星和月球),并且正在使用非常准确的瑞士星历模式。此外,我还设置了恒星模式、Lahiri Ayanmsha Flag、Topocentric Flag。我还设置了拓扑纬度和经度位置。

最让我困扰的是,包括 Jumior Jyothish 在内的所有其他在线吠陀本命图生成器的值似乎彼此匹配。我不确定我做错了什么。这是我的代码Swiss ephemeris 在 git 上的 .NET 中使用的链接,其中包含示例代码片段

[Test]
    public void ShouldGetAllPlanetValues()
    {
        var errorMessage = new StringBuilder(1000);
        var longitudeAndLatitude = new Double[6];
        var cusps = new Double[13];
        var ascentantAndMore = new Double[10];
        var julianDayNumbersInEtAndUt = new double[2];
        TimeZoneInfo indiaTimeZone = TimeZoneInfo.FindSystemTimeZoneById(IndiaStandardTimeZoneId);
        var ephemerisTablesPath = new StringBuilder(@"../../../EphemerisFiles/");

        swe_set_ephe_path(ephemerisTablesPath);
        var birthTimeInIndianZone = new DateTime(1989, 8, 21, 10, 29, 0);
        DateTime birthTimeInUtc …
Run Code Online (Sandbox Code Playgroud)

c# pyephem

3
推荐指数
1
解决办法
4821
查看次数

为什么这个函数中有非详尽的模式?

在这个脚本中,

permutations :: Integer -> Integer -> Integer
permutations x y
            | x==x-(y-1)     = x
            | (x>0) && (y>0) = permutations (x-1) y * x
Run Code Online (Sandbox Code Playgroud)

我想知道为什么在函数排列中存在非穷举模式.

请帮我.

非常感谢你的进步!

haskell

2
推荐指数
1
解决办法
102
查看次数

插入w /多个选择给出ERROR 1242:子查询返回多于1行

我有表foo1的列UserID,TimeStamp; foo2,列为userID,Level&table为foo3,列为userID,Timestamp.

我想从表foo2中存在UserID的foo3中插入foo1的所有行.

我收到错误1242:子查询返回超过1行以下

INSERT into foo1 (UserID,TimeStamp)
SELECT  
(SELECT UserID from foo2 as UserID),

(SELECT foo3.TimeStamp
from foo3
inner join foo2
ON foo3.UserID=foo2.UserID) as TimeStamp
Run Code Online (Sandbox Code Playgroud)

insert-into mysql-error-1242

2
推荐指数
1
解决办法
849
查看次数

日期时间无效

$tmpCreated = dir | Sort CreationTime -Descending | Select CreationTime -First 1 
    $tmpCreated = [string]$tmpCreated
    $tmpCreated = $tmpCreated.split("=")[1]
    $tmpCreated = $tmpCreated.split("}")[0]
Run Code Online (Sandbox Code Playgroud)

这是我想要作为DateTime得到的变量.我想用这个命令比较两个日期:

$timeDiff = new-timespan –Start $tmpLast –End $tmpCreated
Run Code Online (Sandbox Code Playgroud)

$tmpLast工作良好.但是当我尝试启动时出现错误,说-End参数因$tmpCreated转换失败而无法使用.但这里是它包含的字符串:11/30/2015 11:57:01.那么,有人知道这有什么问题吗?

powershell datetime

1
推荐指数
1
解决办法
89
查看次数

电子邮件验证Regex JAVA

我需要使用java regex进行电子邮件验证,就像我在JSP上已有的一样.当我将正则表达式从JSP复制到JAVA时,我收到了一个错误.但是,在JSP中,它运行正常.

if (null != email) {
            String regex = "^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{1,6}))?$";
            Pattern pattern = Pattern.compile(regex);
            Matcher matcher = pattern.matcher(email);
            if (!matcher.matches()) {
                addFormException(new DropletException("Email not valid "));
            }
        }
Run Code Online (Sandbox Code Playgroud)

java regex email

1
推荐指数
1
解决办法
1万
查看次数

C#中的简单计算器就像这个6 + 4

这些是我用来保存数据的变量

int num1 = int.Parse(Console.ReadLine());
string sign = Console.ReadLine();
int num2 = int.Parse(Console.ReadLine());
Run Code Online (Sandbox Code Playgroud)

检查输入的if语句

如何使它变得简单

    if (sign == "+")
            {
                Console.WriteLine(num1 + num2);
            }
            else if (sign == "-")
            {
                Console.WriteLine(num1 - num2);
            }
            else if (sign == "*")
            {
                Console.WriteLine(num1 * num2);
            }
            else if (sign == "/")
            {
                Console.WriteLine(num1 / num2);
            }
            else
            {
                Console.WriteLine("Wrong operation sign ...");
            }


        Console.ReadLine();
Run Code Online (Sandbox Code Playgroud)

如何在窗体中显示输出,num1 sign num2 = num3例如"6 + 4 = 10"在控制台窗口中?

c# asp.net console calculator

-1
推荐指数
1
解决办法
359
查看次数

System.InvalidOperationException:ExecuteReader:尚未初始化Connection属性

protected void Button3_Click(object sender, EventArgs e)
{
 cn.Open();

 SqlCommand cmd = new SqlCommand("select top '"+Label4.Text+"' * from qb_vb where marks=1");

 SqlDataReader dr1 = cmd.ExecuteReader();

if (dr1.Read())
 {
  Label8.Text = dr1["quest"].ToString();
  Label9.Text = dr1["ans1"].ToString();
 }
cn.Close();
Run Code Online (Sandbox Code Playgroud)

}

.net c# asp.net executereader

-2
推荐指数
1
解决办法
1万
查看次数