exponential

Python Simple Exponential Smoothing

醉酒当歌 提交于 2021-02-17 06:47:15
问题 I downloaded a TESLA stock from www.nasdaq.com; and after I downloaded the CSV file I realized that I need convert the CSV by using Microsoft Excel 2016. I use the Data Tab; and click Text to Columns. The header is clear now, they are: date, close, volume, open, high, low. Please see the csv file here. LinK: https://drive.google.com/open?id=1cirQi47U4uumvA14g6vOmgsXbV-YvS4l Preview (The CSV data is from 02/02/2017 until 02/02/2018): 1. date | close | volume | open | high | low | 2. 02/02/2018

How can I solve exponential equation in Maxima CAS

家住魔仙堡 提交于 2021-02-10 12:54:54
问题 I have function in Maxima CAS : f(t) := (2*exp(2*%i*%pi*t) - exp(4*%pi*t*%i))/4; here: t is a real number between 0 and 1 function should give a point on the boundary of main cardioid of Mandelbrot set How can I solve equation : eq1:c=f(t); (where c is a complex number) ? Solve doesn't work solve( eq1,t); result is empty list [] Result of this equation should give real number t ( internal angle or rotation number ) from complex point c EDIT: Thx to comment by @JosehDoggie I can draw initial

Plotting exponential curve by fitting to data in python

∥☆過路亽.° 提交于 2021-02-08 10:21:00
问题 I have x array and y array. I need to predict points(points of pareto fronts) in left and right side (I don't know exactly how). That's why used in first extrapolation of points, but it gaves linear I tried to fit my data points to exponential curve, but gave me as result only straight line with coefficients A=1.0 , K=1.0 , C=232.49024883323932 . I also tried to fit my data to polynomial function with degree 3, result better, but the tail is increasing x=[263.56789586, 263.56983885, 263

Query to convert exponential number to float in SQL Server

丶灬走出姿态 提交于 2021-02-08 06:35:46
问题 I am using SELECT CAST('5E-05' AS float) result = 0.00005 and it is not working. Help. https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=5E-05+to+decimal 回答1: Provide correct output for this so that we test and throw few more sample data. Try this, SELECT CONVERT(decimal(18,8), CAST('5E-05' AS FLOAT)) 来源: https://stackoverflow.com/questions/36914381/query-to-convert-exponential-number-to-float-in-sql-server

SCIP Objective Function quicksum over a exponential term

送分小仙女□ 提交于 2021-01-29 17:22:03
问题 I am having issues summing over an exponential equation and using this as is the objective function. Am I able to use the exponential equation in the objective function? If not, is it possible to put the exponential function in as a constraint? Any help on this would be appreciated. import pandas as pd from pyscipopt import Model, quicksum, multidict, exp num_fac_to_open = 1 order_to_open = [] opened_fac = [] closed_fac = [0, 1, 2] S = [0, 1, 2] R = [10, 11, 12] distance_dict = {(0, 10): 300

Script for working out exponential limit within a set range

牧云@^-^@ 提交于 2021-01-28 06:23:51
问题 In the image above column B is multiples of A1 and column C is C = C + B (working down the rows) I worked out that in order for C for be 50 in 20 rows A1 has to be 0.2631579 but I'd like to be able to simplify that to a function that will return a list: list = exp(50, 20). I'm not sure about the terminology of such a script so researching beforehand didn't really bring anything up sorry. 回答1: Well based on your problem statement, we know that: B n =(n-1)×a ; and C n =(n-1)×n×a/2 (here a is

Exponential Moving Average in php

喜你入骨 提交于 2021-01-27 18:54:10
问题 I want to calculate the EMA (Exponential Moving Average) value in PHP. I've tried with following code but it's giving me 500 error. $real = array(12,15,17,19,21,25,28,12,15,16); $timePeriod = 3; $data = trader_ema($real,$timePeriod); var_dump($data); PHP: EMA calculation function trader-ema Tried with long time Googling but not getting any help on this in PHP. So, I've no clue what needs to be done to calculate the EMA value. Edit-1: Installed extensions I've installed all the necessary

R: Exponent returning infinity

只谈情不闲聊 提交于 2020-08-12 01:29:28
问题 I need to remove logarithms of my data and thus am taking e to the power of the values which are logarithmed. My issue is that when I have e to the power of more than 709 R returns the value of infinity. How can I surpass this? e^710 [1] Inf Thanks :) 回答1: If you really want to work with numbers that big you can use a Rmpfr package. library('Rmpfr') x <- mpfr(710, precBits = 106) exp(x) 1 'mpfr' number of precision 106 bits [1] 2.233994766161711031253644458116e308 来源: https://stackoverflow

How to use nls() to fit multiple constants in exponential decay model?

那年仲夏 提交于 2020-06-27 04:12:28
问题 I am dealing with the relationship: y = h * R + x * v * h where: x = (N - M) * exp(-Q * u) + M which gives the principal equation: y = h * R + v * h * (N - M) * exp(-Q * u) + v * h * M All uppercase letters are constants, and all lowercase letters are variables. I have real data for all the variables, but I either do not know the values of the constants (R and Q), or want to check the ability of the data to fit the values of the constants (N and M). I want to use nls() to fit the equation