problem with stack and reverse

problem with stack and reverse - 消息

#1 已发布: 2012/5/20 06:26:43
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Hi,

This is a piece of a script to draw a IPE/HE beam cross section; the idea is to draw the section using the double symmetry of the profile, rather than do it point by point, but I've found some problems/incongruences... I think can be bugs, but I'm not sure...

stack reverse problems.zip

stack reverse problembugs%2fstack%20reverse%2001.png

regards, w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#2 已发布: 2012/5/20 06:57:10
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Hello w3b5urf3r,

I mentioned that in some other post reverse-and-interpolation

The problem could be resolved if you use Numerical optimization for the variables defined with reverse(). Just use it for your Q and S variables and everything will be fine.

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1位用户喜欢此帖子
Davide Carpi 2012/5/20 07:00:00
#3 已发布: 2012/5/20 06:59:32
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Wrote

Hello w3b5urf3r,

I mentioned that in some other post reverse-and-interpolation

The problem could be resolved if you use Numerical optimization for the variables defined with reverse(). Just use it for your Q and S variables and everything will be fine.

Regards,
Radovan



done, thank you!

P.S. this problem can't be resolved inside functions (see the end of updated stack reverse problems.zip)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
Radovan Omorjan 2012/5/20 08:21:00
#4 已发布: 2012/5/20 08:22:42
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Wrote

Wrote

Hello w3b5urf3r,

I mentioned that in some other post reverse-and-interpolation

The problem could be resolved if you use Numerical optimization for the variables defined with reverse(). Just use it for your Q and S variables and everything will be fine.

Regards,
Radovan



done, thank you!

P.S. this problem can't be resolved inside functions (see the end of updated stack reverse problems.zip)



Actually, it can. Inside your function use eval(reverse(...)) instead reverse(...).

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • 有新帖
  • 无新帖