New variable programmatically; also: Solving under/over defined system of linear eqautions

New variable programmatically; also: Solving under/over defined system of linear eqautions - Messages

#21 Posted: 3/13/2016 2:46:14 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Wrote

Alex,

Maybe you can find some ideas in this:0704.2661.pdf (508 KiB) downloaded 58 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
#22 Posted: 3/14/2016 1:10:11 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Wrote

Alex,

Here is a little reflection concerning the risks of the confidence in mathematics let alone.
Here is an example:

alex15.png

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

S&T.png

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 :d
#23 Posted: 3/14/2016 2:04:49 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Wrote


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

Otherwise we could continue this conversation till the ends of time.

#24 Posted: 11/24/2016 1:37:57 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

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.
#25 Posted: 11/24/2016 2:33:01 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Several ways to do the task

2016-11-24 18_39_57-SMath Studio - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
Alexander O. Melnik 11/24/2016 3:58:00 PM, frapuano 11/24/2016 4:45:00 PM
#26 Posted: 11/24/2016 3:57:57 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Thanks alot, I knew there was a way!
#27 Posted: 11/24/2016 7:32:44 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thanks alot, I knew there was a way!



Alex,

Can you exemplify a typical application [short].


#28 Posted: 12/28/2016 6:47:56 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

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!

BOOLstring2num.png
#29 Posted: 12/29/2016 7:03:48 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

It seems that everything would work if I could introduce quote charachter inside of quotes. Is this at all possible?


Nope.
Wrote

Is there another solution to waht I am trying to achieve?


You can use the unit symbol '

2016-12-29 11_03_17-SMath Studio - [Page1_].png
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
Alexander O. Melnik 12/30/2016 4:49:00 PM
#30 Posted: 12/30/2016 4:54:06 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

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#:

SmathBool.png

Or even better looking:

SmathBool1.png

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
  • New Posts New Posts
  • No New Posts No New Posts