Skip to content

Instantly share code, notes, and snippets.

View netodevel's full-sized avatar
🏠
Working from home

José Vieira Neto netodevel

🏠
Working from home
  • São Paulo, Brasil
View GitHub Profile
/**
* Cálculo de B(x,t)
*/
System.out.println("\n***************************************************");
System.out.println("******************PASSO 4.5 Cálculo de B(x,t)******");
System.out.println("***************************************************\n");
BigDecimal Bxt = BigDecimal.ZERO;
BigDecimal x = BigDecimal.ZERO;
BigDecimal t = new BigDecimal("365").setScale(30, RoundingMode.HALF_EVEN);
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 8.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal totalDeMassaNaFonte = BigDecimal.ZERO; //KG
totalDeMassaNaFonte = cti.multiply(pb).multiply(xSource).multiply(ySource).multiply(Lw.multiply(new BigDecimal("100"))).multiply(new BigDecimal(Math.pow(10d, -3d)));
System.out.println("Valor totalDeMassaNaFonte: " + nb.format(totalDeMassaNaFonte));
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 7.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal Mass = BigDecimal.ZERO;
BigDecimal C = valoresCwxt.get(valoresCwxt.size() - 1); // é o ultimo valor de Cwxt
BigDecimal xSource = LENGTH_OF_SOURCE.multiply(new BigDecimal("100"));
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 8.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal totalDeMassaNaFonte = BigDecimal.ZERO; //KG
totalDeMassaNaFonte = cti.multiply(pb).multiply(xSource).multiply(ySource).multiply(Lw.multiply(new BigDecimal("100"))).multiply(new BigDecimal(Math.pow(10d, -3d))).setScale(30, RoundingMode.HALF_EVEN);
System.out.println("Valor totalDeMassaNaFonte: " + nb.format(totalDeMassaNaFonte));
package br.com.sed.seris.domain.simulation.concentration;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
package br.com.sed.seris.domain.simulation.concentration;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.HashMap;
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is found in controllers.js
angular.module('starter', ['ionic','ionic.service.core', 'starter.controllers'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
Error: [$injector:modulerr] Failed to instantiate module PushNotification due to:
Error: [$injector:nomod] Module 'PushNotification' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.3/$injector/nomod?p0=PushNotification
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'precise32'
config.vm.network :forwarded_port, guest: 80, host: 8080
config.ssh.insert_key = false
end
describe List do
before(:each) do
@list = List.new
end
it "should be valid" do
@list.should be_valid
end
end