problem with stack and reverse

problem with stack and reverse - Messages

#1 Posted: 5/20/2012 6:26:43 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 Posted: 5/20/2012 6:57:10 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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 users liked this post
Davide Carpi 5/20/2012 7:00:00 AM
#3 Posted: 5/20/2012 6:59:32 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 users liked this post
Radovan Omorjan 5/20/2012 8:21:00 AM
#4 Posted: 5/20/2012 8:22:42 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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!"
  • New Posts New Posts
  • No New Posts No New Posts