SMath Studio Forum
»
SMath Studio
»
Questions
»
New variable programmatically; also: Solving under/over defined system of linear eqautions
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
Originally Posted by: ioan92 Alex, Maybe you can find some ideas in this: 0704.2661.pdf (509kb) downloaded 37 time(s).Is from Googel harvest... Many thanks for the reference, just the title alone tells me i will end up reading it word-by-word
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
Originally Posted by: ioan92 Alex, Here is a little reflection concerning the risks of the confidence in mathematics let alone. Here is an example: You have a classical illustration of the stable vs unstable equilibrium. Both mechanisms satisfy the equilibrium conditions (mathematically speaking), they can be well identified by a good mathematics tool, as you tried. But, for us the two situations are far from being both acceptable. One is "happiness" (OK!) while the second is purely "unhappiness" (KO!!!). Ties and struts are reversed. That's one of the reasons why I think that it is better to handle a strong equilibred modeling. I 100% on board with you for not solving the truss using F.x & F.y equilibrium alone - frankly I would not sleep well at night if I did. Lets keep things in perspective though. I am solving stru & tie model and strut and tie is looking at a solid chunk of concrete. Struts and ties are just the stress fields (is this a correct term?) within that blob of concrete. It ain't going nowhere. And is completely stable. (take a look at this deep beam crossection for example If you solve strut and tie using truss model you are poised to introduce either unnecessary B.C. (boundary conditions) or redundant members. We might be comparing apples to oranges here. All said though, I do appreciate the cleanliness of your solution and its presenation. Cheers P.S.: I use EXCEL to viasualize the geometry of said stress fields within the real concrete section. If I did not there would not be an easy way to confirm that my struts are within the concrete chunk. That would be a no go for me . I suppose I could plot the concrete section myself... But hey, there is no harm in letting drafters do the drafting Edited by user 14 March 2016 19:15:23(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
Originally Posted by: ioan92 Let it be clear, I'm not in a commercial attitude. I have nothing to force for selling... So I'll definitely stop here.
Agreed rinks: Otherwise we could continue this conversation till the ends of time.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
I am still looking for a way to introduce a new variable name defined from string, and then assign a value to it. Say if in a for() loop I came across a string "cat44" I would like to create & assign value to variable cat44:="Meow". str2num("cat44" :="Meow" predictably does not work. Edited by user 24 November 2016 19:41:57(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Several ways to do the task Edited by user 24 November 2016 20:42:17(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
2 users thanked Davide Carpi for this useful post.
|
on 24/11/2016(UTC), on 24/11/2016(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
Thanks alot, I knew there was a way!
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Alex M. Thanks alot, I knew there was a way! Alex, Can you exemplify a typical application [short].
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
I figured my question will be appropriate here. I am trying to create a boolean string using for loop and str2num() on a matrix with three rows - left side, operand, and right side, and n columns. It seems that everything would work if I could introduce quote charachter inside of quotes. Is this at all possible? Is there another solution to waht I am trying to achieve? Thanks! Edited by user 29 December 2016 00:58:38(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Originally Posted by: Alex M. It seems that everything would work if I could introduce quote charachter inside of quotes. Is this at all possible? Nope. Originally Posted by: Alex M. Is there another solution to waht I am trying to achieve? You can use the unit symbol 'Edited by user 29 December 2016 13:06:14(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
Thanks alot, with you help i was able to complete my intelligent data sieving algorithm that runs through a data table and pulls out rows based on user defined criteria. I actually slightly modified your approach using a dummy string variables left# and right#: Or even better looking: Now only if I could make the expression left#≡right# return itself in a string format without having to clear variables left# and #right beforehand Edited by user 30 December 2016 23:09:29(UTC)
| Reason: Not specified
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
New variable programmatically; also: Solving under/over defined system of linear eqautions
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.