문제

After painful trial and error, I arrived at a grotesque function that behaves the way I want it to:

(exp(- abs(6 * (x - 0.7)) ^ 2.5 ) + exp(- (x-1.7) ^ 8 ) * 1.2)/1.5785

I only care about the values for the range 0 <= x <= 1 and the slope at x = 1. In this interval, 0 <= y <= 1 as well.

Are there any free tools (web-based or MAC OS X) that will generate the Taylor series expansion for this? (I found one, but it choked on such a complex formula and does not support abs.)

My purpose in generating the series expansion is that it may be more efficient to compute. (This function will be called hundreds of thousands of times in Javascript, so performance is an issue.)

Alternately, I could sample the points and do a curve fitting if I had a curve fitting tool. (I do not own MS Excel, alas.) Know of any free non-linear curve-fitting tools (web-based or MAC OS X)?

도움이 되었습니까?

해결책

해결 방법은 Windows 인증 사이트 ("nofollow"> https://clientmanage.test.com ) 그리고 이제는 주요 https://client.test.com 대신 해당 주소에 배포합니다.이렇게하면 Windows 및 Forms 인증을 허용 할 수 있습니다 (Client.Test.com)에서는 Visual Studio (clientmanage.test.com)에서 보고서, 데이터 소스 등을 동시에 배포 할 수 있습니다.

다른 팁

Maxima does this. See the taylor function.

https://ctaylor.codeplex.com

This is a C++ library which allows you to write expressions and variables and calculate not only the value but also any order derivative. The compiler is the one generating the code for the derivatives.

나는 나 자신에 의해 그것을 알아 냈다.
아래 코드를 Leject-Button의 OnClick 이벤트에 추가했습니다.

protected void Button_Reject_Click(object sender, EventArgs e)
{
    try
    {
        SPListItem spListItem = SPContext.Current.ListItem;

        Hashtable ht = new Hashtable();
        ht[SPBuiltInFieldId.PercentComplete] = 1.0f;
        ht[SPBuiltInFieldId.TaskStatus] = "@"; // @ to reject the task
        ht["Reason"] = this.tbxReason.Text; // Add the TextBox value to the Hashtable
        SPWorkflowTask.AlterTask(spListItem, ht, true); // Alter the task...

        CloseForm();
    }
    catch
    {
        // Nothing
    }
}
.

워크 플로의 CompleteTask 이벤트에서는 TaskAfterProperties의 텍스트 상자의 값에 쉽게 액세스 할 수 있습니다.

private void ApproveCompleteTask_MethodInvoking(object sender, EventArgs e)
{
    Debug.WriteLine("ApproveCompleteTask] started");

    // Get the TaskAfterProperties
    Hashtable properties = this.TaskAfterProperties.ExtendedProperties; 
    // Get the value from the Hashtable
    String reason = Convert.ToString(properties["Reason"]);

    // Do whatever you want to do with it

    Debug.WriteLine("ApproveCompleteTask] completed");
}
.

나는 그것이 다른 사람을 돕기를 바랍니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top