<font size=2 face="sans-serif">OK, i will try.</font>
<br>
<br><font size=2 face="sans-serif">with best regards / mit freundlichen
Grüssen / cordialement</font>
<br>
<br><font size=2 face="sans-serif">Pascal Bühler<br>
Qualität-Hardware / Prüfingenieur<br>
SAUTER HeadOffice<br>
Fr. Sauter AG<br>
Im Surinam 55, CH-4016 Basel<br>
Telefon +41 (0)61 695 5646<br>
Telefax +41 (0)61 695 5619<br>
</font><a href="http://www.sauter-controls.com/"><font size=2 face="sans-serif">http://www.sauter-controls.com</font></a><font size=2 face="sans-serif"><br>
<br>
DISCLAIMER:<br>
This communication, and the information it contains is for the sole use
of<br>
the intended recipient. It is confidential, may be legally privileged and<br>
protected by law. Unauthorized use, copying or disclosure of any part<br>
thereof may be unlawful. If you have received this communication in error,<br>
please destroy all copies and kindly notify the sender.<br>
<br>
Before printing out this e-mail or its attachments, please consider whether
<br>
it is really necessary to do so.<br>
Using less paper helps the environment.</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:      
 </font><font size=1 face="sans-serif">"Dang Ngoc Chan,
Christophe" <Christophe.Dang@sidel.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:      
 </font><font size=1 face="sans-serif">Users mailing list
for Scilab <users@lists.scilab.org>, </font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:      
 </font><font size=1 face="sans-serif">27.02.2018 14:35</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:    
   </font><font size=1 face="sans-serif">Re: [Scilab-users]
Antwort: Antwort: Re: Antwort: Re: Problem with solving this elegantly</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von:    
   </font><font size=1 face="sans-serif">"users"
<users-bounces@lists.scilab.org></font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Hello Pascal,<br>
<br>
> De : Pascal Buehler<br>
> Envoyé : mardi 27 février 2018 14:00<br>
><br>
> So this is my attempt for the Mohrscher Spannungskreis.<br>
><br>
> Please impruve the code.<br>
<br>
Well, first improvement would be to comment your code,<br>
especially if you want other people to read it :-)<br>
<br>
Apart from this, here are a few things:<br>
You create a matrix called Tensor but you barely use it as a matrix;<br>
sometimes you use elements of it, e.g. Tensor(1,1),<br>
sometimes you use the values with their original name, e.g. Sigmaxx.<br>
This has probably no influence considering the memory needed and calculation
time<br>
but some consistency would not hurt.<br>
<br>
When you compute several times the same value, you should create a variable
for it, e.g.<br>
<br>
cdS = cosd(Schnittwinkel)<br>
<br>
sdS = sind(Schnittwinkel)<br>
<br>
TKomponenten= Schnittspannungsvektor*[cdS ; sdS]<br>
<br>
TKoordinatenkomponenten=[cdS, sdS ; -sdS, cdS]*TKomponenten<br>
<br>
Foo = 2*Tauxy/(Sigmaxx - Sigmayy)<br>
<br>
aFoo = 0.5*atand(foo)<br>
<br>
bFoo = 0.5*atand(-foo)<br>
<br>
Richtungen1 = [0, 90, 180] + aFoo*[1, 1, 1]<br>
<br>
Richtungen2 = [0, 90, 180] + bFoo*[1, 1, 1]<br>
<br>
Hope this helps<br>
<br>
--<br>
Christophe Dang Ngoc Chan<br>
Mechanical calculation engineer<br>
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in error),
please notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.<br>
_______________________________________________<br>
users mailing list<br>
users@lists.scilab.org<br>
</font></tt><a href=http://lists.scilab.org/mailman/listinfo/users><tt><font size=2>http://lists.scilab.org/mailman/listinfo/users</font></tt></a><tt><font size=2><br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
</font>