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 ola_nicolas  
#1 Posted : 10 December 2023 05:19:27(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 114
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
Many Greetings
Has anyone made a function in Smath for factoring a number into a continued fraction, similar to making the symbolic function K confrac in MathCad?! Where K represents a fractional decimal number, as in the example in the attached image.
confrac funtion in MathCad.png

Edited by user 10 December 2023 05:21:10(UTC)  | Reason: Not specified

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

Offline overlord  
#2 Posted : 10 December 2023 07:09:00(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,129
Turkey

Was thanked: 510 time(s) in 340 post(s)
Here is a sample for your question.

Regards

confrac.sm (19kb) downloaded 13 time(s).

Click to expand
thanks 1 user thanked overlord for this useful post.
on 11/12/2023(UTC)
Offline Jean Giraud  
#3 Posted : 10 December 2023 10:33:42(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ola_nicolas Go to Quoted Post
Has anyone made a function in Smath for factoring a number into a continued fraction ...

If your data set is clean from published data or collected discrete
it will convert data in scalar function, compliant to scalar derivative.
Continued fraction is the candidate ...atmosphere 0...100 km
see Ralph Karmichael ISA ... module coded in Smath.
More in IAPWS.

Offline overlord  
#4 Posted : 10 December 2023 11:09:45(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,129
Turkey

Was thanked: 510 time(s) in 340 post(s)
Long word short, Jean doesn't have the answer to your question.
This is how he achieved 1800 posts, 18.47% of all smath forum posts.
Replying with totally ridiculous and unuseful posts.

Below is a function to sum matrix of confrac().

Regards

2023-12-10_00-09.png
thanks 1 user thanked overlord for this useful post.
on 11/12/2023(UTC)
Offline ola_nicolas  
#5 Posted : 10 December 2023 21:13:01(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 114
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: overlord Go to Quoted Post
Here is a sample for your question ...

Thank you very much for the answer. I arrived at a very similar relation, but which did not work because I omitted to declare the function variable at the beginning of the program in the right member of the definition relation. Using MathCad quite often (where the variable / variables of the function are automatically declared only by mentioning them in the left member of the definition relation) I tend to apply the same rules in Smath. Thank you again.
Greetings.
Offline uni  
#6 Posted : 10 December 2023 23:37:22(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,495
Man
Russian Federation

Was thanked: 1275 time(s) in 746 post(s)
maple-confrac-vector.png
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 11/12/2023(UTC),  on 11/12/2023(UTC)
Offline Jean Giraud  
#7 Posted : 11 December 2023 05:38:59(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ola_nicolas Go to Quoted Post
Has anyone made a function in Smath for factoring a number into a continued fraction ...

Yes, in most advanced profitable.
Best to save a copy before experimenting
Jean.

ConfracNUMBER Copy.sm (47kb) downloaded 5 time(s).

Offline ola_nicolas  
#8 Posted : 11 December 2023 06:45:30(UTC)
ola_nicolas


Rank: Advanced Member

Groups: Registered
Joined: 21/11/2017(UTC)
Posts: 114
Romania
Location: Olt county

Was thanked: 1 time(s) in 1 post(s)
@uni: The advantage of the relationship is that it takes up little space in the worksheet. The disadvantage of designing such a relationship is that the component functions (convert, confrac, vector) are not predefined anywhere in the program's toolbars (at least not in the version I have). Maybe in newer versions there are predefined functions for these functions.
@Jean Giraud: As a former engineer (currently retired), I base it on practice, simplicity and efficiency. Therefore, in my applications, I don't need anything else than a vector of the decomposition of a decimal fraction into a continued fraction. I used this function (confrac) to calculate the number of teeth of several pairs of gear wheels, in order to obtain a certain transfer ratio K.
On another note, everything you have presented here probably has multiple applications, depending on the field of interest. So thank you all.
Greetings.
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.