For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Need to speed up your development?
Have a look at our:

Need some functionality extending standard OCCT capabilities?
Check out our:

can i calculate real time in math_setFuctionRoot?

Forums:

I have to solve equation as follows.

X = [alpha,beta,gamma,x,y,z] f1 = sin(beta) f2 = cos(beta)sir(gamma) f3= cos(beta)cos(gamma) -1 f4=cos(beta)sin(gamma)((y-1)) - sin(beta)

*((x-3)) - cos(beta)cos(gamma(( z-2)) f5 = x-3 f6 = y-2 f7 = x-3sin(beta) - 3 f8 = y + 3cos(beta)sin(r) -2 f9 = alpha

Then jacobian matrix(Partial Derivatives) becomes as follows. set a = cos(beta) b = sin(beta) c = sin(gamma) d = cos(gamma) e = -sin(beta)sin(gamma) f = cos(beta)cos(gamma) g = -sin(beta)cos(gamma) h = -cos(beta)sin(gamma) i = -sin(beta)cos(gamma)- sin(beta)sin(gamma)(y-2) j = -cos(beta)(x-3) + sin(beta)cos(gamma)(z-2) k =cos(beta)cos(gamma)(y-2)+cos(beta)sin(gamma)

*(z-2)

[J] = [0 a 0 0 0 0]

[0 e f 0 0 0]

[0 g h 0 0 0]

[0 i j -b a*c h]

[0 0 0 1 0 0]

[0 0 0 0 1 0]

[0 -3a 0 1 0 0]

[0 -3bc 3ad 0 1 0]

[1 0 0 0 0 0]

As above, 9 equation and 6variable exist. Then To X vector gain, i have to use math_FunctionSetRoot.

So I have to redefine Virtual fuction in math_FunctionSetWithDerivatives.

But as above 9 equations are not unigue. That is : they can change other equation. Because 9 eqations can change according to given conditions,

I can not redefine.. question 1) How do i apply to redefine virtual fuction in changeable equation ?

question 2) How do i can Partial Derivatives ?

question 3) How do I cos,tan,sin fuction derivative?

I cannot apply above 3 in opencascade environment.

Please tell me know how do i apply as above..

I looking forward to your response as soon as possible.

Thans

Best regards.