Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
#include
int main(int argc, const char * argv[]) { // Z = e^pi/4 (R * cos(11Pi/6 + 2pPI) + isin(RPi)/6) double pi = M_PI; double e = M_E; double Z = pow(e, pi/4); double R; scanf("%lf", &R); double p; scanf("%lf", &p); double tmp = 11 * pi / 6; tmp += 2 * p * pi; double i = CMPLX(0, 1); R *= (cos(tmp) + i * sin(R*pi/6)); printf("Z = %.2lf + %.2lfi\n", creal(R), cimag(R)); return 0; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)