Ejemplo n.º 1
0
    def test_fv_float_array_3(self):

        try:
            x = npf.fv([-0.075,1.075,-1.075], [20], [-2100,2000,-2500], 0, ['begin','end'])
            print(x)
        except:
            print("exception caught")
Ejemplo n.º 2
0
    def test_fv_float_array_1B(self):

        x = npf.fv([-0.075,1.075,-1.075], [20], [-2100,2000,-2500], 0, [1,'end', 'begin'])
        print(x)
Ejemplo n.º 3
0
    def test_fv_some_rates_zero(self):

        result = npf.fv([0, 0.1], 5, 100, 0)
        print(result)
Ejemplo n.º 4
0
    def test_fv_float_array_1A(self):

        x = npf.fv([-0.075,1.075,-1.075], [20], [-2100,2000,-2500], 0, [1,0,1])
        print(x)
Ejemplo n.º 5
0
    def test_fv_when_is_end_decimal(self):

        x = npf.fv(Decimal('0.075'), Decimal('20'), Decimal('-2000'), 0, 'end')
        print(x)
Ejemplo n.º 6
0
    def test_fv_broadcast(self):

        result = npf.fv([[0.1], [0.2]], 5, 100, 0, [0, 1])
        print(result)
Ejemplo n.º 7
0
    def test_fv_when_is_begin_decimal(self):

        x = npf.fv(Decimal('0.075'), Decimal('20'), Decimal('-2000'), 0, 'begin')
        print(x)
Ejemplo n.º 8
0
    def test_fv_when_is_end_float(self):

        x = npf.fv(0.075, 20, -2000, 0, 'end')
        print(x)
Ejemplo n.º 9
0
    def test_fv_when_is_begin_float(self):

        x = npf.fv(0.075, 20, -2000, 0, 'begin')
        print(x)
Ejemplo n.º 10
0
    def test_fv_complex(self):

        x = npf.fv(0.075j, 20, -2000, 0, 0)
        print(x)
Ejemplo n.º 11
0
    def test_fv_decimal(self):

        x = npf.fv(Decimal('0.075'), Decimal('20'), Decimal('-2000'), 0, 0)
        print(x)
Ejemplo n.º 12
0
    def test_fv_float(self):

        x = npf.fv(0.075, 20, -2000, 0, 0)
        print(x)
Ejemplo n.º 13
0
    def test_fv_int(self):

        x = npf.fv(75, 20, -2000, 0, 0)
        print(x)