1 страниц (5 вхождений)
Round in functions - Сообщения
#1 Опубликовано: 14.09.2009 23:07:54
I'm trying to use round(x,0) in a function to fix a floating point number, so that I can use it as an index in a matrix.
However, when I try to do this it doesn't work, and the yellow box shows that all instances of round have been reinterpreted as mod.
However, when I try to do this it doesn't work, and the yellow box shows that all instances of round have been reinterpreted as mod.
#2 Опубликовано: 14.09.2009 23:20:18
Seems it's OK. Need an example.
#3 Опубликовано: 14.09.2009 23:32:45
dn(day,month,year)←round((0+({month-1}/12)+year-1900)*365.25+day,0)
dn(15,9,2009)=
dn(15,9,2009)=
#4 Опубликовано: 14.09.2009 23:41:00
My fault, sorry.
Error fixed.
[MATH lang=eng]dn(day,month,year)←round((0+({month-1}/12)+year-1900)*365.25+day,0)[/MATH]
[MATH lang=eng]dn(15,9,2009)=40071[/MATH]
What version you need to have (Desktop/Linux/Handheld)? If you need in Desktop one, then here is new builds for you:
SMathStudioDesktop.0_85_3545.Setup.msi
SMathStudioDesktop.0_85_3545.Portable.exe
Error fixed.
[MATH lang=eng]dn(day,month,year)←round((0+({month-1}/12)+year-1900)*365.25+day,0)[/MATH]
[MATH lang=eng]dn(15,9,2009)=40071[/MATH]
What version you need to have (Desktop/Linux/Handheld)? If you need in Desktop one, then here is new builds for you:
SMathStudioDesktop.0_85_3545.Setup.msi
SMathStudioDesktop.0_85_3545.Portable.exe
#5 Опубликовано: 15.09.2009 00:00:17

1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений