Questions tagged [mixed-radix]
6 questions
9
votes
5 answers
Converting a decimal to a mixed-radix (base) number
How do you convert a decimal number to mixed radix notation?
I guess that given an input of an array of each of the bases, and the decimal number, it should output an array of the values of each column.

nickf
- 537,072
- 198
- 649
- 721
3
votes
1 answer
Equivalent of encode / decode from APL in Python
I'm curious if anyone recalls the decode (⊥) function in APL? It was useful to translate between dimensions in an n-dimensional array and a flattened equivalent.
For example, if I had a 4 dimensional array, I could use decode as follows to derive…

C. Cooney
- 471
- 5
- 19
3
votes
1 answer
How to Convert from a Residual Number System to a Mixed Radix System?
I understand the concept of a Residual Number System and the concept of a Mixed Radix system, but I'm having difficulty getting any of the conversion methods I find to work in a simple case study.
I started at Knuth's Art of Computer Programming but…

eyepatch
- 85
- 6
1
vote
1 answer
Radix 3,5 FFT in C++
I'm trying to implement A Radix-5,Radix-3 FFT in C++, I already managed to write a Radix-2 but I have some type of bug when it comes to Radix 3 or 5, let's say I do an FFT of 3 samples, that would show the correct results, however if I do FFT of 9…

yarin Cohen
- 995
- 1
- 13
- 39
1
vote
1 answer
Radix number representation
I have recently started learning Logic Designs and I have a few things that I don't quite understand.
Let's say you are given a certain value in seconds (say 3,000,000), and are asked to convert to weeks, days, hours, minutes and seconds (Mixed…

Vik
- 37
- 5
1
vote
2 answers
How to calculate log of a complex number to a base other than 'e'?
I have this bit of VB6 sliced out of a project I'm working on:
Public Function C_Ln(c As ComplexNumber) As ComplexNumber
Set C_Ln = toComplex(Log(C_Abs(c)), Atan2(c.Imag, c.Real))
End Function
The VB6 Log() function is base-e. I'd like to cook…

bugmagnet
- 7,631
- 8
- 69
- 131