Create the response from fuction

Wisawanart
Wisawanart Altair Community Member
edited October 2020 in Community Q&A

Hi

I am a new user in HyperStudy,

I faced with the error in creating process of output response, the f(x) is shown as the figure below.

Previously, I tried to fill in ((dv_2)−(5*(dv_1)^2)/(4*3.142^2)+5*dv_1/3.142−6)^2+10*(1−1/8*3.142)*cos⁡(dv_1)+10;  (when X1=dv_1, X2=dv_2)

but it is not working.

 

Please suggest me how to put such kind of equation in Hyperstudy.

 

Best regards

 

<?xml version="1.0" encoding="UTF-8"?>1.PNG

Answers

  • Rahul Rajan_21763
    Rahul Rajan_21763 New Altair Community Member
    edited July 2018

    You can try with internal math.Refer tutorial HS-1015: Working with an Internal Math Model (Beverage Can quick start example)

    Or You can also use HyperMath to create output responses.

    Step 1: Write the HyperMath function
    Step 2: Register the HyperMath function
    Step 3: Use the HyperMath function

    <?xml version="1.0" encoding="UTF-8"?>Quick start example.JPG

  • Diana_38240
    Diana_38240
    Altair Employee
    edited July 2018

    Hello,

    I confirm you that you can create a response of f(x1,x2) as (var_2-(5*var_1^2)/(4*pi^2)+var_1/pi-6)^2+10*(1-1/8*pi)*cos(var_1)+10, where var_1 is x1 and var_2 is x2

    It works: f(1,1)=36.4

    What was not working in your case? 

     

    Best regards