--
www.aquaq.co.uk
www.aquaq.co.uk/blog
www.aquaq.co.uk/training
---
You received this message because you are subscribed to the Google Groups "AquaQ kdb+/TorQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kdbtorq+unsubscribe@googlegroups.com.
To post to this group, send email to kdb...@googlegroups.com.
Visit this group at https://groups.google.com/group/kdbtorq.
To view this discussion on the web, visit https://groups.google.com/d/msgid/kdbtorq/20813cba-84b4-4839-a796-2cd0664ed177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
(building on the work of others)
a:1 4 5 9 10 40 50 90 100 400 500 900 1000
b:("I";"IV";"V";"IX";"X";"XL";"L";"XC";"C";"CD";"D";"CM";"M")
e:{raze b a?-1*1_deltas -1_{x-a a bin x}\[x]}
d:{sum r*1+-2*next(>':)r:a b?x}
--
www.aquaq.co.uk
www.aquaq.co.uk/blog
www.aquaq.co.uk/training
---
You received this message because you are subscribed to the Google Groups "AquaQ kdb+/TorQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kdbtorq+u...@googlegroups.com.
To post to this group, send email to kdb...@googlegroups.com.
Visit this group at https://groups.google.com/group/kdbtorq.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/kdbtorq/20813cba-84b4-4839-a796-2cd0664ed177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
######################################################################
The information contained in this communication is confidential and
may contain information that is privileged or exempt from disclosure
under applicable law. If you are not a named addressee, please notify
the sender immediately and delete this email from your system.
If you have received this communication, and are not a named
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
######################################################################d:{sum each r*1 -1 r<1_'(r:b x),'0}
encoded:e til 20000 // e in earlier email
d encoded
Cheers
Ryan
(building on the work of others)
a:1 4 5 9 10 40 50 90 100 400 500 900 1000
b:("I";"IV";"V";"IX";"X";"XL";"L";"XC";"C";"CD";"D";"CM";"M")
e:{raze b a?-1*1_deltas -1_{x-a a bin x}\[x]}
d:{sum r*1+-2*next(>':)r:a b?x}
From: kdb...@googlegroups.com [mailto:kdbtorq@googlegroups.com] On Behalf Of TorQ Guru
Sent: Tuesday, February 28, 2017 5:26 AM
To: AquaQ kdb+/TorQ
Subject: [Aquaq kdbtorq] Decode and Encode Roman Numerals
Write two functions one, to encode, the other to decode all integers between 1 and 20000 from and to Roman Numerals.
TM
--
www.aquaq.co.uk
www.aquaq.co.uk/blog
www.aquaq.co.uk/training
---
You received this message because you are subscribed to the Google Groups "AquaQ kdb+/TorQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kdbtorq+unsubscribe@googlegroups.com.
To post to this group, send email to kdb...@googlegroups.com.
Visit this group at https://groups.google.com/group/kdbtorq.
To view this discussion on the web, visit https://groups.google.com/d/msgid/kdbtorq/20813cba-84b4-4839-a796-2cd0664ed177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
######################################################################
The information contained in this communication is confidential and
may contain information that is privileged or exempt from disclosure
under applicable law. If you are not a named addressee, please notify
the sender immediately and delete this email from your system.
If you have received this communication, and are not a named
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
######################################################################
--
www.aquaq.co.uk
www.aquaq.co.uk/blog
www.aquaq.co.uk/training
---
You received this message because you are subscribed to the Google Groups "AquaQ kdb+/TorQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kdbtorq+unsubscribe@googlegroups.com.
To post to this group, send email to kdb...@googlegroups.com.
Visit this group at https://groups.google.com/group/kdbtorq.
To view this discussion on the web, visit https://groups.google.com/d/msgid/kdbtorq/C35742AE9726D74DBEBF922156BC80434F4F5CB6%40EXUSMBX02.AD.MLP.com.