Activity for nsajko

  • nsajko nsajko committed [263b39]

    Geodesic: improve A1m1f, A2m1f, C1f, C1pf, C2f

  • nsajko nsajko posted a comment on discussion Open Discussion

    Clang, on the other hand, also has that option, but with a different default.

  • nsajko nsajko posted a comment on discussion Open Discussion

    Regarding FMA, whether it will improve accuracy depends on the target architecture and on the compiler. With GCC, for example, there should probably be no change because GCC optimizes to FMA automatically by default, unless -ffp-contract=off is specified.

  • nsajko nsajko posted a comment on discussion Open Discussion

    I should have mentioned that I'm only interested in the double case, that is GEOGRAPHICLIB_PRECISION == 2.

  • nsajko nsajko posted a comment on discussion Open Discussion

    Hello, I'm currently working on slightly improving the accuracy and/or speed of the Geodesic::A1m1f, Geodesic::A2m1f, Geodesic::C1f, Geodesic::C1pf, Geodesic::C2f functions, and possibly others. What's the best way to test that my changes actually improve accuracy or that the changes don't degrade accuracy?

  • nsajko nsajko committed [931ecd]

    GeographicLib::Constants: fix WGS84 flattening definition

  • nsajko nsajko modified a comment on discussion Open Discussion

    Just by looking at some GCC warnings, I'm 95% sure PractRand (0.94 + pre0.95) has some easily fixable but possibly quite serious bugs. I'm willing to contribute fixes, but it's really not clear what's the process for that. I'm a bit put off by the possibility that the bugs are already fixed in some unreleased version, because, as far as I understand, there is no development version available after pre0.95. Do you have something unreleased you're working on? How would you feel if I imported 0.94 and...

  • nsajko nsajko posted a comment on discussion Open Discussion

    Just by looking at some GCC warnings, I'm 95% sure PractRand (0.94 + pre0.95) has some easily fixable but possibly quite serious bugs. I'm willing to contribute fixes, but it's really not clear what's the process for that. I'm a bit put off by the possibility that the bugs are already fixed in some unreleased version, because, as far as I understand, there is no development version available after pre0.95. Do you have something unreleased you're working on? Also, are there plans to switch to Git?...

  • nsajko nsajko posted a comment on discussion Open Discussion

    Hello, In the header tools/MultithreadedTestManager.h, a member function called retire has volatile return type. I guess the intention was to prevent some compiler optimization? Whatever the intention was, it's not being served by having a volatile return value: that construction in the type signature has no meaning, i.e., the semantics are the same as if the volatile keyword was omitted. I.e., the compiler just ignores it. So you probably have a bug there somewhere. Also, AFAIK C++20 disallows having...

  • nsajko nsajko posted a comment on ticket #401

    In the end I computed power dissipated on the resistor r1 in three different ways just to be sure: r1 0 1 ... define power(x, y) real((x) * conj((y))) ac lin 1 1 1 print mag(i(v0))^2 * @r1[resistance] print mag(v(1))^2 / @r1[resistance] print power(v(1), i(v0)) BTW, my circuit only has linear components.

  • nsajko nsajko posted a comment on ticket #401

    Excuse my ignorance I am surely still missing something: So you are saying that @device[p] should not be used at all with .AC? Or maybe you are saying that it can not be correct in general? I could certainly uderstand that considering that in the very manual section title AC is called "Small-Signal AC Analysis". But in the case of only using linear components in the simulation, could it still not be made to work correctly?

  • nsajko nsajko modified a comment on ticket #401

    I do not know if I can edit the bug report above, but there is an error in my bug report, sorry about that. The correct formula as far as I know is not abs(real(voltage * current)) as I said above, it is real(voltage * conj(current)), which is real(voltage * (real(current), -imag(current)))

  • nsajko nsajko posted a comment on ticket #401

    Could you expand this comment, maybe give an example; I do not understand it. For what it is worth I think representation of AC power as a complex number is (just as with voltage and current) standard practice for longer than SPICE exists ...

  • nsajko nsajko posted a comment on ticket #401

    I do not know if I can edit the bug report above, but there is an error in my bug report, sorry about that. The correct formula as far as I know is not abs(real(voltage * current)) as I said above, it is abs(real(voltage * conj(current))), which is abs(real(voltage * (real(current), -imag(current))))

  • nsajko nsajko created ticket #401

    Incorrect calculation of device instance parameter power for AC analysis

  • nsajko nsajko committed [318b04]

    ecu_connect: remove unused variable

  • nsajko nsajko committed [9013d1]

    Rename types with names reserved by POSIX

  • nsajko nsajko committed [de26d7]

    Add schedSetter, a program to exec scantool and set its scheduling

  • nsajko nsajko committed [e17318]

    Remove some unused declarations

  • nsajko nsajko committed [1f3f37]

    Add curly brackets around single statements for readability

  • nsajko nsajko committed [464cde]

    Remove redundant casts

  • nsajko nsajko committed [e238a1]

    Remove redundant elses

  • nsajko nsajko committed [3ffd19]

    cosmetic: Put a space after if, switch, while, for keywords

  • nsajko nsajko committed [d90b94]

    wait_enter: Make format string a constant

  • nsajko nsajko committed [ad7c05]

    cosmetic: Consistently cuddle '}' and 'else'

  • nsajko nsajko committed [038eeb]

    cosmetic: Consistently use whitespace around curly brackets

  • nsajko nsajko committed [32e33a]

    cosmetic: Put '*' adjacent to the identifier and not to the type

  • nsajko nsajko created ticket #688

    Automated esniper bug report.

1