Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline struktron  
#1 Posted : 21 August 2013 23:10:44(UTC)
struktron

Rank: Newbie

Groups: Registered
Joined: 17/07/2013(UTC)
Posts: 7
Croatia
Location: Porec

Hello,

in my Mathcad-worksheet I have i:=1..N, where N is very big (250000). Now I need in SMath also to calculate most formulas N times. In Mathcad I can take the Index (x_i) everywhere and so it calculate all N times. How can I solve this in SMath?

After calculating the worksheet I am not ready. I need to calculate all more times. So I must save results, where I need to append one number after every repeating. With wfile I don't know, how to append this one number? When I start next repeat, I must read all numbers and want to know, how many numbers I have? In Mathcad I have the function rows. Here it doesn't work. I can't separate my numbers by coma (...,...,...).

Many thanks for help and maybe link to example,
regards
Lothar W.
Do collisions of spheres generate the fine structure constant?
http://struktron.de/FSK/...onstante-Berechnung.html

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 22 August 2013 00:06:10(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
What you want (and what is on my wish list) is range variables. Unfortunately, we do not have them in SMath. Thus, loops are required, see matrix chapter in the handbook. For writing and reading data, the functions WRITEBIN and READBIN from the plugin MathcadFileAccess might prove to be efficient and flexible for binary data files. They are documented in the function index of the pdf manual (signature link). The online manual does not yet cover data file handling.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline struktron  
#3 Posted : 22 August 2013 00:50:34(UTC)
struktron

Rank: Newbie

Groups: Registered
Joined: 17/07/2013(UTC)
Posts: 7
Croatia
Location: Porec

Hello Martin,
Originally Posted by: mkraska Go to Quoted Post
What you want (and what is on my wish list) is range variables. Unfortunately, we do not have them in SMath. Thus, loops are required, see matrix chapter in the handbook. For writing and reading data, the functions WRITEBIN and READBIN from the plugin MathcadFileAccess might prove to be efficient and flexible for binary data files. They are documented in the function index of the pdf manual (signature link). The online manual does not yet cover data file handling.

Thank You very much for this quick answer. I will try anything, but for me has priority in this moment my working Mathcad 14. SMath I want for everyone because my results are important and interesting many people.
Last ten repeats gave:
0.00729733118205
0.00729734592137
0.00729735783481
0.00729735727918
0.00729735497708
0.00729735234122
0.00729734389008
0.00729735045422
0.00729735045426
0.00729735431205
in my FSK.prn.

Regards and hope for the version 1.0.
Lothar W.
Do collisions of spheres generate the fine structure constant?
http://struktron.de/FSK/...onstante-Berechnung.html
Users browsing this topic
Guest
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.